Mercurial > vim
diff src/testdir/test_vimscript.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 | cb73f4ae6b7c |
children | da98d2ed8dc5 |
line wrap: on
line diff
--- a/src/testdir/test_vimscript.vim +++ b/src/testdir/test_vimscript.vim @@ -1165,6 +1165,8 @@ func Test_type() call assert_equal(v:t_none, type(v:none)) call assert_equal(v:t_none, type(v:null)) + call assert_fails("call type(test_void())", 'E685:') + call assert_fails("call type(test_unknown())", 'E685:') call assert_equal(0, 0 + v:false) call assert_equal(1, 0 + v:true)