aboutsummaryrefslogtreecommitdiff
path: root/test/unit/eval/helpers.lua
Commit message (Collapse)AuthorAge
* vim-patch:8.2.0111: VAR_SPECIAL is also used for booleansBilly Su2020-06-06
| | | | | | Problem: VAR_SPECIAL is also used for booleans. Solution: Add VAR_BOOL for better type checking. https://github.com/vim/vim/commit/9b4a15d5dba354d2e1e02871470bad103f34769a
* vim-patch:8.1.1579: dict and list could be GC'ed while displaying errorJan Edmund Lazo2020-01-05
| | | | | | | | | Problem: Dict and list could be GC'ed while displaying error in a timer. (Yasuhiro Matsumoto) Solution: Block garbage collection when executing a timer. Add test_garbagecollect_soon(). Add "no_wait_return" to test_override(). (closes vim/vim#4571) https://github.com/vim/vim/commit/adc6714aac20f5462a0ecec50ab4806b2f3ab0db
* *: Provide list length when allocating listsZyX2018-01-14
|
* eval/typval: Remove tv_list_item_free() as it is unusedZyX2017-12-24
|
* eval/typval: Make tv_list_item_alloc staticZyX2017-12-24
| | | | Better write this bit in lua then make reviewers or clint filter out tv_list_item_alloc().
* viml/parser/expressions: Start creating expressions parserZyX2017-10-08
| | | | | | | | | | | | | | Currently supported nodes: - Register as it is one of the simplest value nodes (even numbers are not that simple with that dot handling). - Plus, both unary and binary. - Parenthesis, both nesting and calling. Note regarding unit tests: it stores data for AST in highlighting in strings in place of tables because luassert fails to do a good job at representing big tables. Squashing a bunch of data into a single string simply yields more readable result.
* unittests: Do not unref partial which is owned by Callback structureZyX2017-04-09
|
* unittests: Test tv_copy()ZyX2017-03-29
|
* unittests: Add tests for tv_dict_extendZyX2017-03-29
|
* unittests: Add tests for dictionary indexingZyX2017-03-29
|
* unittests: Add tv_dict_item_{add,remove} testsZyX2017-03-29
|
* unittests: Add tv_dict_watcher_{add,remove} testsZyX2017-03-29
|
* unittests: Add tests for tv_list_find*() functionsZyX2017-03-29
| | | | | | | | Additional modifications: - More `const` qualifiers in tested functions. - `tv_list_find_str()` second argument is more in-line with other `tv_list_find*()` functions.
* eval/typval,tests: Fix extending list with itself, add testsZyX2017-03-29
| | | | | Adds unit test for tv_list_extend and regression test for extend() VimL function.
* unittests: Add tests for tv_list_insert*()/…append*() functionsZyX2017-03-29
|
* unittests: Test tv_list_item_\* functionsZyX2017-03-29
| | | | To check that memory is free()d correctly.
* eval: Move copy_tv to eval/typvalZyX2017-03-29
|
* *: Move some dictionary functions to typval.h and use char*ZyX2017-03-29
| | | | Also fixes buffer reusage in setmatches() and complete().
* eval: Split eval.c into smaller filesZyX2017-03-29
|
* unittests: Do not import libnvim or headers in main processZyX2017-03-11
| | | Slows down unit tests much, but gets rid of as much preserved state as possible.
* unittests: Check core dumps in after_each, like in functestsZyX2017-03-11
|
* unittest: Add dict_items functionZyX2017-01-07
|
* unittest: Allow mocking allocator callsZyX2017-01-07
|
* unittests: Fix linter errorsZyX2017-01-03
|
* tests: Add tests for partials dumpingZyX2017-01-03
| | | | | Also fixed dumping of partials by encode_vim_to_object and added code which is able to work with partials and dictionaries to test/unit/eval/helpers.lua (mostly copied from #5119, except for partials handling).
* unittests/*/helpers: Fix testlint errorsZyX2016-06-24
|
* fixup! unittests: Add tests for vim_to_object functionZyX2016-06-24
|
* unittests: Add tests for vim_to_object functionZyX2016-06-24
|
* Satisfy testlint.KillTheMule2016-04-28
| | | | For that, make luatest ignore the preload.lua files.
* eval/encode: Fix writing strings starting with NL to listZyX2016-04-18
Error [found][1] by oni-link. [1]: https://github.com/neovim/neovim/pull/4131/files#r52239384