diff options
Diffstat (limited to 'src/testdir/test_functions.vim')
-rw-r--r-- | src/testdir/test_functions.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index 8664724b5c..17a87d85e0 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -82,15 +82,15 @@ func Test_empty() call assert_equal(0, empty(function('Test_empty'))) call assert_equal(0, empty(function('Test_empty', [0]))) - call assert_fails("call empty(test_void())", 'E685:') - call assert_fails("call empty(test_unknown())", 'E685:') + call assert_fails("call empty(test_void())", ['E340:', 'E685:']) + call assert_fails("call empty(test_unknown())", ['E340:', 'E685:']) endfunc func Test_test_void() call assert_fails('echo 1 == test_void()', 'E1031:') call assert_fails('echo 1.0 == test_void()', 'E1031:') - call assert_fails('let x = json_encode(test_void())', 'E685:') - call assert_fails('let x = copy(test_void())', 'E685:') + call assert_fails('let x = json_encode(test_void())', ['E340:', 'E685:']) + call assert_fails('let x = copy(test_void())', ['E340:', 'E685:']) call assert_fails('let x = copy([test_void()])', 'E1031:') endfunc |