diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-05-08 15:31:38 +0100 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2023-05-08 15:31:38 +0100 |
| commit | 8cf51376b842e0060edf08bd2e5bd9933c552ecf (patch) | |
| tree | e98edb7a30d0b40eacbd0281313621351ac9d055 /src/testdir/test_utf8.vim | |
| parent | 276410e78f0b82e3123059383994d2f4c578dfbd (diff) | |
| download | vim-git-9.0.1524.tar.gz | |
patch 9.0.1524: passing -1 for bool is not always rejectedv9.0.1524
Problem: Passing -1 for bool is not always rejected.
Solution: Check for error in a better way. (closes #12358)
Diffstat (limited to 'src/testdir/test_utf8.vim')
| -rw-r--r-- | src/testdir/test_utf8.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/test_utf8.vim b/src/testdir/test_utf8.vim index 16bf60d9e..610566fd6 100644 --- a/src/testdir/test_utf8.vim +++ b/src/testdir/test_utf8.vim @@ -29,8 +29,10 @@ func Test_strchars() call assert_equal(exp[i], strcharlen(inp[i])) endfor - call assert_fails("let v=strchars('abc', [])", 'E745:') - call assert_fails("let v=strchars('abc', 2)", 'E1023:') + call assert_fails("call strchars('abc', 2)", ['E1023:', 'E1023:']) + call assert_fails("call strchars('abc', -1)", ['E1023:', 'E1023:']) + call assert_fails("call strchars('abc', {})", ['E728:', 'E728:']) + call assert_fails("call strchars('abc', [])", ['E745:', 'E745:']) endfunc " Test for customlist completion |
