aboutsummaryrefslogtreecommitdiff
path: root/test/unit
Commit message (Collapse)AuthorAge
* test: cleanup, reduce verbosityJustin M. Keyes2019-06-01
|
* Merge #9709 'fileio: use os_copy to create backups'Justin M. Keyes2019-05-20
|\ | | | | | | ref #8288
| * test: move trim to global helpersSaid Al Attrach2019-03-30
| |
* | test: remove use of require('test.helpers')Justin M. Keyes2019-05-18
| | | | | | | | | | | | The test.functional.helpers and test.unit.helpers modules now include all of the public functions from test.helpers, so there is no need to separately require('test.helpers').
* | lua/stdlib: Introduce vim.sharedJustin M. Keyes2019-05-18
| | | | | | | | | | | | | | | | | | | | This is where "pure functions" can live, which can be shared by Nvim and test logic which may not have a running Nvim instance available. If in the future we use Nvim itself as the Lua engine for tests, then these functions could be moved directly onto the `vim` Lua module. closes #6580
* | test: Extend {unit,functional}.helpers with global helpersJustin M. Keyes2019-05-18
|/ | | | | | | | Automatically include all "global helper" util functions in the unit.helpers and functional.helpers and modules. So tests don't need to expicitly do: local global_helpers = require('test.helpers')
* search.c: remove dead code #5307Justin M. Keyes2019-03-02
| | | has_mbyte is always true.
* os/env: use libuv v1.12 getenv/setenv APIJustin M. Keyes2019-02-27
| | | | | | | | | | | - Minimum required libuv is now v1.12 - Because `uv_os_getenv` requires allocating, we must manage a map (`envmap` in `env.c`) to maintain the old behavior of `os_getenv` . - free() map-items after removal. khash.h does not make copies of anything, so even its keys must be memory-managed by the caller. closes #8398 closes #9267
* test: Lua 5.2/5.3 compatMatěj Cepl2019-01-17
| | | | | close #9515 ref #9280
* Merge pull request #9240 from jamessan/mbyte_spec-failureJames McCoy2018-11-15
|\ | | | | unit/mbyte_spec: Run utf_char2bytes test in batches of 0xFFF characters
| * unit/mbyte_spec: Run utf_char2bytes test in batches of 0xFFF charactersJames McCoy2018-11-15
| | | | | | | | | | Running the full 0xFFFF set of tests in one process fails on slower architectures/when there's CPU contention.
* | shell/logging: Fix E730 with verbose system({List}) #9009Justin M. Keyes2018-09-21
|/ | | | | | | | ref https://github.com/neovim/neovim/issues/9001#issuecomment-421843790 Steps to reproduce: :set verbose=9 :call system(['echo']) E730: using List as a String
* test: Rename includes/pre/uv-errno.h to includes/pre/uv.hJames McCoy2018-07-11
| | | | | | | | | | | | | | | | | | libuv users are only supposed to directly include uv.h. In v1.21.0, all the uv-*.h headers were renamed to uv/*.h, which caused the unit tests to fail with [123/125] Generating post/uv-errno.h FAILED: test/includes/post/uv-errno.h cd «SRCDIR»/src/neovim/build/test/includes && /usr/bin/clang -std=c99 -E -P «SRCDIR»/src/neovim/test/includes/pre/uv-errno.h -I/usr/include -I/usr/include -o «SRCDIR»/neovim/build/test/includes/post/uv-errno.h «SRCDIR»/src/neovim/test/includes/pre/uv-errno.h:1:10: error: 'uv-errno.h' file not found with <angled> include; use "quotes" instead #include <uv-errno.h> ^~~~~~~~~~~~ "uv-errno.h" The intention of the file is to extend libuv's error constants with more values used by the unit tests. This can just as easily be achieved without poking into pseudo-private header files.
* test: build_stl_str_hl (#8703)ZviRackover2018-07-10
| | | | Improve coverage of `build_stl_str_hl`. Minor removal of dead code in the tested function.
* test: port kword_test to Lua for utf_char2bytes()Jan Edmund Lazo2018-07-01
| | | | | | Use LuaJIT FFI to create char pointer. Validate output with utf_ptr2char(), vim_iswordc() and vim_iswordp(). Use const for LuaJIT string-to-char conversion.
* lintJustin M. Keyes2018-04-28
|
* test/unit/undo_spec.lua: fixup after rebase #4985Justin M. Keyes2018-04-27
|
* test/unit: some unit tests for undo.c #4985Christopher Waldon2018-04-27
|
* Merge branch 'master' into s-dash-stdinb-r-o-c-k2018-04-14
|\
| * refactor/rename: path_try_shorten_fname()Justin M. Keyes2018-03-24
| |
| * refactor/rename: path_is_absolute()Justin M. Keyes2018-03-24
| |
| * unittest: Ignore all _Float-prefixed types (#8067)James McCoy2018-02-25
| | | | | | | | Previously, we ignored only _Float128. But glibc 2.27 added _Float32 and _Float32x. Rather than play whack-a-mole, ignore everything.
| * 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
| |\
| * | 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
| |\ \
| * | | 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
| | | |