diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-07-25 15:57:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-25 15:57:32 +0200 |
commit | a764e73d4ffc5d046807c757eaacb9b0a5408152 (patch) | |
tree | 477a5065575e437a5496ead0e45ac8ff5ee5671c /src/testdir/test_assert.vim | |
parent | 2ec28aec9d4f1b9c1c008e36adde9fc82affae0f (diff) |
patch 8.2.3221: Vim9: argument types are not checked at compile timev8.2.3221
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
Diffstat (limited to 'src/testdir/test_assert.vim')
-rw-r--r-- | src/testdir/test_assert.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim index e0dc99e7c6..51a0a3e66b 100644 --- a/src/testdir/test_assert.vim +++ b/src/testdir/test_assert.vim @@ -268,21 +268,21 @@ func Test_assert_fail_fails() catch let exp = v:exception endtry - call assert_match("E856: \"assert_fails()\" second argument", exp) + call assert_match("E1174: String 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() |