aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval
Commit message (Collapse)AuthorAge
...
* *: Fix test failuresZyX2017-12-11
|
* functests: Add some more NULL testsZyX2017-12-10
|
* eval: Fix uniq() crash in legacy test 055ZyX2017-12-10
|
* functests: Mark islocked("v:_null_list") behaviour correctZyX2017-12-10
| | | It is the same for other VAR_FIXED lists.
* quickfix: Fix :cexpr and :lexprZyX2017-12-10
|
* eval: Fix setmatches(), setqflist() and setloclist()ZyX2017-12-10
|
* eval,functests: Fix tests and complete() and setline() behaviourZyX2017-12-10
|
* *: Hide list implementation in other files as wellZyX2017-12-10
|
* eval: Fix writefile()ZyX2017-12-10
|
* eval: Fix inputlist()ZyX2017-12-10
|
* *: Start hiding list implementationZyX2017-12-10
| | | | Most of files, except for eval.c and eval/* were only processed by perl.
* Viml: Make filter and map handle null list correctFlorianGit2017-12-03
| | | | | | | | | | | | | | | | | | | filter('v:_null_list, 'v:val') should return v:_null_list and a similar statement should hold for map. Changes after review * Test inserted in legacy test suite has been removed by reverting the commit adding it. * Change the fix to tv_copy the argument before returning. * Readd the two tests on crashes, and modified their expected return value. * Move the test from 'incorrect behaviour' section to 'correct behaviour section' * Add analogous tests for v:_null_dict Always copy list or dictionary to return variable If the type of input is correct (i.e. either a list or a dictionary), this should also be returned.
* compat: "v:count" distinct from "count" (#7407)Marco Hinz2017-11-09
|
* eval/decode.c: Avoid NULL arg to memchr() #7332Adrian Neumann2017-11-06
| | | | | | | Clang complains because memchr has undefined behavior if the ptr is NULL, even if len==0. Helped-by: Nikolai Aleksandrovich Pavlov <kp-pav@yandex.ru>
* test: server_spec: Tolerate missing protocol (#7478)James McCoy2017-11-02
| | | | | | | | | | | | | | | | | Travis disabled IPv6: [ RUN ] serverstart(), serverstop() parses endpoints correctly: FAIL ...build/neovim/neovim/test/functional/eval/server_spec.lua:83: Expected objects to be the same. Passed in: (table) { [1] = '127.0.0.1:12345' } Expected: (table) { [1] = '127.0.0.1:12345' *[2] = '::1:12345' } Change all tests to ensure a server was actually started before expecting it to be returned from serverlist().
* getcmdline_prompt: Temporarily disable msg_silent so prompt is displayedJames McCoy2017-10-14
| | | | | vim-patch:7.4.1636 Closes #7378
* functests: Remove wait() from input_specZyX2017-08-06
|
* Revert "functests: Replace wait() with nvim_async"ZyX2017-07-27
| | | | | | This reverts commit e129607988b88719935bc4af517e7ee2689f5871. Tests stopped working in CI.
* functests: Replace wait() with nvim_asyncZyX2017-07-26
|
* functests: Remove unneeded wait()sZyX2017-07-26
|
* Merge branch 'master' into colored-cmdlineZyX2017-07-15
|\
| * mbyte: Fix crash when using multibyte chars in maparg() return (#6986)Nikolai Aleksandrovich Pavlov2017-07-09
| | | | | | | | | | | | | | | | This is a refactoring typo from #6947. Fixes #6985 Combined with #6947 where typo was made it also fixes vim/vim#1827 which was present in Neovim.
| * test: handle single-char hostname (#6939)KunMing Xie2017-07-01
| |
* | functests: Add missing wait()ZyX2017-06-27
| |
* | eval,ex_getln: Add support for coloring input() promptsZyX2017-06-27
|/
* functests: Move function_spec to evalZyX2017-06-20
|
* functests/msgpack: Correct representation of literal INT64_MINJames McCoy2017-06-06
| | | | | | In order to generate INT64_MIN from literal values, it's necessary to use "-0x7fffffffffffffff - 1". Using "-0x8000000000000000" causes the value to get clamped to INT64_MAX and then negated.
* functests/msgpack: Use assert_equal() for more informative errorsJames McCoy2017-06-06
|
* Merge pull request #6680 from mhinz/listen/localhostJames McCoy2017-05-28
|\ | | | | Use uv_getaddrinfo() for servers
| * eval: serverstart: Return finalized address to userJames McCoy2017-05-28
| | | | | | | | | | In the process of setting up the socket watcher, the address may be changed (e.g., adding the OS-selected port).
| * Server tests: endpoint parsing in serverstart()Marco Hinz2017-05-22
| |
| * Server tests: use helpers.command()Marco Hinz2017-05-22
| |
* | get_keymap API (#6236)TJ DeVries2017-05-25
|/ | | | | | | * Add api function get keymap nvim_get_keymap(mode) nvim_buf_get_keymap(buffer, mode)
* Merge #6480 from ZyX-I/colored-cmdline'/input-dictJustin M. Keyes2017-05-13
|\
| * functests: Reword regression test headersZyX2017-05-13
| |
| * functests: Remove “correctly” from non-regression testsZyX2017-05-13
| |
| * functests: Get rid of last redraws due to the “line above” issueZyX2017-05-11
| |
| * functests: Remove outdated commentsZyX2017-05-10
| |
| * functests: Remove some redraw callsZyX2017-05-10
| |
| * functests: Remove all wait()sZyX2017-05-10
| |
| * eval: Alter E5050 error message, test thatZyX2017-05-10
| |
| * eval: Refactor get_user_input to support dictionaryZyX2017-05-10
| |
* | api: add metadata for ui eventsBjörn Linse2017-05-10
|/
* win: default shellxescape, shellxquote to emptyRui Abreu Ferreira2017-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling cmd.exe in Windows follows a very different pattern from Vim. The primary difference is that Vim does a nested call to cmd.exe, e.g. the following call in Vim system('echo a 2>&1') spawns the following processes "C:\Program Files (x86)\Vim\vim80\vimrun" -s C:\Windows\system32\cmd.exe /c (echo a 2^>^&1 ^>C:\Users\dummy\AppData\Local\Temp\VIoC169.tmp 2^>^&1) C:\Windows\system32\cmd.exe /c C:\Windows\system32\cmd.exe /c (echo a 2^>^&1 ^>C:\Users\dummy\AppData\Local\Temp\VIo3C6C.tmp 2^>^&1) C:\Windows\system32\cmd.exe /c (echo a 2>&1 >C:\Users\dummy\AppData\Local\Temp\VIo3C6C.tmp 2>&1) The escaping with ^ is needed because cmd.exe calls itself and needs to preserve the special metacharacters for the last call. However in nvim no nested call is made, system('') spawns a single cmd.exe process. Setting shellxescape to "" disables escaping with ^. The previous default for shellxquote=( wrapped any command in parenthesis, in Vim this is more meaningful due to the use of tempfiles to store the output and redirection (also see &shellquote). There is a slight benefit in having the default be empty because some expressions that run in console will not run within parens e.g. due to unbalanced double quotes system('echo "a b')
* win: libuv_process_spawn(): special-case cmd.exeRui Abreu Ferreira2017-04-12
| | | | | | | | | | | | | | | | | | Disable CommandLineToArgvW-standard quoting for cmd.exe. libuv assumes spawned processes follow the convention expected by CommandLineToArgvW(). But cmd.exe is non-conformant, so for cmd.exe: - With system([]), the caller has full control (and responsibility) to quote arguments correctly. - With system(''), shell* options are used. libuv quoting is disabled if argv[0] is: - cmd.exe - cmd - $COMSPEC resolving to a path with filename cmd.exe Closes #6329 References #6387
* win/test: Enable more system() testsRui Abreu Ferreira2017-04-12
|
* functests: Fix some tests which are failing locally for unrelated reasonsZyX2017-04-09
|
* functests: Replace execute with either command or feed_commandZyX2017-04-09
| | | | | | | | | | Hope this will make people using feed_command less likely: this hides bugs. Already found at least two: 1. msgpackparse() will show internal error: hash_add() in case of duplicate keys, though it will still work correctly. Currently silenced. 2. ttimeoutlen was spelled incorrectly, resulting in option not being set when expected. Test was still functioning somehow though. Currently fixed.
* win: os_get_hostname() #5416 (#6413)Justin M. Keyes2017-04-07
|
* eval: Add s flag, use p_fs by default, error out on unknown flagZyX2017-04-03
|