comparison src/testdir/test_functions.vim @ 19548:9a9ca0e622c8 v8.2.0331

patch 8.2.0331: internal error when using test_void() and test_unknown() Commit: https://github.com/vim/vim/commit/7c215c58936cbebd4132ad6112d04db54b7c153e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 29 13:43:27 2020 +0100 patch 8.2.0331: internal error when using test_void() and test_unknown() Problem: Internal error when using test_void() and test_unknown(). (Dominique Pelle) Solution: Give a normal error.
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 Feb 2020 13:45:04 +0100
parents bab20768e1fd
children b38d73f36467
comparison
equal deleted inserted replaced
19547:2d657ba32b83 19548:9a9ca0e622c8
56 call assert_equal(1, empty(test_null_job())) 56 call assert_equal(1, empty(test_null_job()))
57 endif 57 endif
58 58
59 call assert_equal(0, empty(function('Test_empty'))) 59 call assert_equal(0, empty(function('Test_empty')))
60 call assert_equal(0, empty(function('Test_empty', [0]))) 60 call assert_equal(0, empty(function('Test_empty', [0])))
61
62 call assert_fails("call empty(test_void())", 'E685:')
63 call assert_fails("call empty(test_unknown())", 'E685:')
61 endfunc 64 endfunc
62 65
63 func Test_len() 66 func Test_len()
64 call assert_equal(1, len(0)) 67 call assert_equal(1, len(0))
65 call assert_equal(2, len(12)) 68 call assert_equal(2, len(12))