aboutsummaryrefslogtreecommitdiff
path: root/test/unit
Commit message (Collapse)AuthorAge
* tests: Make format_string('%q', ...) output more stableZyX2018-02-02
| | | It appears to be different on lua and luajit.
* os/input.c: parse keycodes in non-string context #7411lePerdu2018-01-18
| | | | | | | | | | | cb02137dfac7 had two mistakes, of the same nature: trans_special() must be invoked with in_string=false unless the parsing context is a VimL string. replace_termcodes() and input_enqueue() are low-level mechanisms where VimL strings do not exist. keymap.c: adjust double-quote case to satisfy keymap_spec.lua closes #7410
* *: Provide list length when allocating listsZyX2018-01-14
|
* *: Fix linter errorsZyX2017-12-24
|
* eval: Replace some tv_list_item_remove() callsZyX2017-12-24
| | | | | There is nothing wrong with them, just it is generally better to remove a range then to remove items individually.
* unittests: Do gc after reporting error, not beforeZyX2017-12-24
| | | | | Reason: test may contain cleanup at the endwhich is needed for GC to work properly, but is not done if test fails. With collectgarbage() in former position it would crash when collecting garbage.
* unittests: Remove start of trace, not endZyX2017-12-24
|
* eval: Rename tv_list_remove_items() to tv_list_drop_items()ZyX2017-12-24
| | | tv_list_remove_items() may cause confusion with tv_list_item_remove()
* eval/typval: Make tv_list_item_remove return pointer to the next itemZyX2017-12-24
|
* 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().
* *: Remove most calls to tv_list_item_allocZyX2017-12-24
| | | | Still left calls in eval/typval.c and test/unit/eval/helpers.lua. Latter is the only reason why function did not receive `static` modifier.
* tests: Fix linter errorsZyX2017-12-03
|
* *: Replace all occurrences of NVim with NvimZyX2017-11-30
|
* unittests: Reduce memory used by vim_str2nr testZyX2017-11-30
|
* Merge branch 'master' into expression-parserZyX2017-11-30
|\
| * unittest: Ignore _Float128 types in ffiJames McCoy2017-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building with certain GCC versions, a _Float128 type is present when setting up the ffi for unit tests. ./test/unit/helpers.lua:256: declaration specifier expected near '_Float128' at line 396 /usr/bin/luajit: /usr/share/lua/5.1/busted/runner.lua:99: attempt to concatenate local 'message' (a table value) stack traceback: /usr/share/lua/5.1/busted/runner.lua:99: in function 'fn' /usr/share/lua/5.1/mediator.lua:103: in function 'publish' /usr/share/lua/5.1/busted/modules/helper_loader.lua:21: in function 'helperLoader' /usr/share/lua/5.1/busted/runner.lua:147: in function </usr/share/lua/5.1/busted/runner.lua:11> /usr/bin/busted:3: in main chunk [C]: at 0x004044a0 CMake Error at /<<PKGBUILDDIR>>/cmake/RunTests.cmake:53 (message): Running unit tests failed with error: 1. Since this is being pulled in by a dependency, not directly used by nvim, just ignore the type. Closes #7423
* | viml/parser/expressions: Make sure that listed nodes may be presentZyX2017-11-26
| | | | | | | | With the new test leaving `assert(false);` for any of the cases makes tests crash.
* | functests: Add some more testsZyX2017-11-26
| |
* | unittests: Run vim_str2nr tests with GC enabledZyX2017-11-19
| |
* | unittests: Populate ARGTYPES in child process onlyZyX2017-11-19
| |
* | Merge branch 'master' into expression-parserZyX2017-11-19
|\|
| * test/unit/path_spec: expect correct buffer size (#7514)Marco Hinz2017-11-13
| | | | | | | | Fixed-size buffers and lfs.currentdir().. does not compute. The tests would fail if the current working directory was longer than expected.
* | unittests: Avoid infinite cycle somewhere because of init failureZyX2017-11-19
| |
* | tests: Stabilize float format and %e in format_luav and format_stringZyX2017-11-19
| |
* | *: Fix linter errorsZyX2017-11-19
| |
* | tests: Use single test file for unit and functional parser testsZyX2017-11-19
| |
* | viml/parser/expressions,unittests: Do better testing, fix found issuesZyX2017-11-19
| |
* | unittests,viml/parser/expressions: Start adding asgn parsing testsZyX2017-11-13
| |
* | unittests: Fix automatic test case generationZyX2017-11-13
| |
* | unittests,syntax: Check for sanity of highlight_init_cmdlineZyX2017-11-13
| | | | | | | | Also fixes some errors found.
* | unittests: Add some more edge test casesZyX2017-11-12
| |
* | viml/parser/expressions: Add support for parsing assignmentsZyX2017-11-12
| |
* | unittests: Add a way to show some custom messages only when crashedZyX2017-11-11
| |
* | *: Fix linter errorsZyX2017-11-06
| |
* | unittests: Add tests for vim_str2nrZyX2017-11-06
| |
* | tests: Add missing test casesZyX2017-11-06
| |
* | api/vim,functests: Add tests for nvim_parse_expression, fix found bugsZyX2017-11-06
| |
* | charset: Refactor vim_str2nrZyX2017-11-06
| |
* | tests: Fix testlint errorsZyX2017-11-06
| |
* | syntax,viml/parser/expressions: Add missing highlight groupsZyX2017-10-29
| | | | | | Also adjusts some names.
* | syntax,viml/expressions/parser: Create defaults for expr highlightingZyX2017-10-29
| |
* | unittests: Avoid alloc log checking errors when printing testsZyX2017-10-29
| |
* | viml/parser/expressions: Fix last error found by KLEEZyX2017-10-29
| |
* | viml/parser/expressions: Fix some errors spotted by KLEEZyX2017-10-19
| | | | | | Not all of them are fixed yet though.
* | unittests: Free everything and check for memory leaksZyX2017-10-16
| | | | | | Also improves error reporting.
* | test/unit/formatc: Fix parsing of most recent viml_parser_highlightZyX2017-10-16
| |
* | viml/parser/expressions: Highlight prefix separately from numberZyX2017-10-16
| | | | | | Should make accidental octals more visible.
* | charset: Avoid overflow in vim_str2nrZyX2017-10-16
| |
* | Merge branch 'master' into expression-parserZyX2017-10-15
|\|