diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 06:22:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 06:22:18 +0800 |
commit | f6299e9d6e13935cc67c2fab16c1a5f6dbc515f3 (patch) | |
tree | d08a567ba549e22b8cf39229874d06e0077280eb /test/old/testdir/test_assert.vim | |
parent | b16729f8162ce21a52f079c3849f5011b768d0ce (diff) | |
download | rneovim-f6299e9d6e13935cc67c2fab16c1a5f6dbc515f3.tar.gz rneovim-f6299e9d6e13935cc67c2fab16c1a5f6dbc515f3.tar.bz2 rneovim-f6299e9d6e13935cc67c2fab16c1a5f6dbc515f3.zip |
vim-patch:8.2.3221: Vim9: argument types are not checked at compile time (#23480)
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes vim/vim#8632)
https://github.com/vim/vim/commit/a764e73d4ffc5d046807c757eaacb9b0a5408152
Cherry-pick test_assert.vim change from patch 8.2.3229.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'test/old/testdir/test_assert.vim')
-rw-r--r-- | test/old/testdir/test_assert.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/old/testdir/test_assert.vim b/test/old/testdir/test_assert.vim index 837e1dde6d..6bc4deb47b 100644 --- a/test/old/testdir/test_assert.vim +++ b/test/old/testdir/test_assert.vim @@ -254,21 +254,21 @@ func Test_assert_fail_fails() catch let exp = v:exception endtry - call assert_match("E856: \"assert_fails()\" second argument", exp) + call assert_match("E1222: String or List required for argument 2", exp) try call assert_equal(1, assert_fails('xxx', 'E492', '', 'burp')) catch let exp = v:exception endtry - call assert_match("E1115: \"assert_fails()\" fourth argument must be a number", exp) + call assert_match("E1210: Number required for argument 4", exp) try call assert_equal(1, assert_fails('xxx', 'E492', '', 54, 123)) catch let exp = v:exception endtry - call assert_match("E1116: \"assert_fails()\" fifth argument must be a string", exp) + call assert_match("E1174: String required for argument 5", exp) endfunc func Test_assert_fails_in_try_block() |