diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 14:17:06 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-05 14:17:06 +0800 |
| commit | 86fe2c8d94d212af098002ce04c87fb73fdf9c52 (patch) | |
| tree | f48445ed4f2cb998a56ef56709ef4a87c8411e0d /src/nvim/testdir/test_functions.vim | |
| parent | a86295cd5c2bf15a11eb05e226fd8e226154f6a6 (diff) | |
| parent | 6956971ec790e636b16eeaec798c826515da9834 (diff) | |
| download | rneovim-86fe2c8d94d212af098002ce04c87fb73fdf9c52.tar.gz rneovim-86fe2c8d94d212af098002ce04c87fb73fdf9c52.tar.bz2 rneovim-86fe2c8d94d212af098002ce04c87fb73fdf9c52.zip | |
Merge pull request #20941 from zeertzjq/vim-8.2.1183
vim-patch:8.2.{partial:1183,1184,1199,1479,1484,1631,1632}: assert_fails() patches
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
| -rw-r--r-- | src/nvim/testdir/test_functions.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index 1ba0cf9080..06c995db86 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -211,7 +211,7 @@ func Test_str2nr() if has('float') call assert_fails('call str2nr(1.2)', 'E806:') endif - call assert_fails('call str2nr(10, [])', 'E474:') + call assert_fails('call str2nr(10, [])', 'E745:') endfunc func Test_strftime() @@ -1728,11 +1728,11 @@ func Test_libcall_libcallnr() call assert_equal(4, 'abcd'->libcallnr(libc, 'strlen')) call assert_equal(char2nr('A'), char2nr('a')->libcallnr(libc, 'toupper')) - call assert_fails("call libcall(libc, 'Xdoesnotexist_', '')", 'E364:') - call assert_fails("call libcallnr(libc, 'Xdoesnotexist_', '')", 'E364:') + call assert_fails("call libcall(libc, 'Xdoesnotexist_', '')", ['', 'E364:']) + call assert_fails("call libcallnr(libc, 'Xdoesnotexist_', '')", ['', 'E364:']) - call assert_fails("call libcall('Xdoesnotexist_', 'getenv', 'HOME')", 'E364:') - call assert_fails("call libcallnr('Xdoesnotexist_', 'strlen', 'abcd')", 'E364:') + call assert_fails("call libcall('Xdoesnotexist_', 'getenv', 'HOME')", ['', 'E364:']) + call assert_fails("call libcallnr('Xdoesnotexist_', 'strlen', 'abcd')", ['', 'E364:']) endfunc sandbox function Fsandbox() |