diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-05-08 22:49:53 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2023-05-08 22:53:43 +0800 |
| commit | 625926f729137658d0a8a73a55aeefc5583488c3 (patch) | |
| tree | 423d42842b90afa924266ba1a037fd91102fcce4 /test/old/testdir/test_expr.vim | |
| parent | d745433817499c34ccf230469417fb0ea29b7ab9 (diff) | |
| download | rneovim-625926f729137658d0a8a73a55aeefc5583488c3.tar.gz rneovim-625926f729137658d0a8a73a55aeefc5583488c3.tar.bz2 rneovim-625926f729137658d0a8a73a55aeefc5583488c3.zip | |
vim-patch:9.0.1524: passing -1 for bool is not always rejected
Problem: Passing -1 for bool is not always rejected.
Solution: Check for error in a better way. (closes vim/vim#12358)
https://github.com/vim/vim/commit/8cf51376b842e0060edf08bd2e5bd9933c552ecf
Diffstat (limited to 'test/old/testdir/test_expr.vim')
| -rw-r--r-- | test/old/testdir/test_expr.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/old/testdir/test_expr.vim b/test/old/testdir/test_expr.vim index d771234983..4cb8da8c74 100644 --- a/test/old/testdir/test_expr.vim +++ b/test/old/testdir/test_expr.vim @@ -155,7 +155,8 @@ func Test_strcharpart() END call CheckLegacyAndVim9Success(lines) - call assert_fails('echo strcharpart("", 0, 0, {})', ['E728:', 'E728:']) + call assert_fails('call strcharpart("", 0, 0, {})', ['E728:', 'E728:']) + call assert_fails('call strcharpart("", 0, 0, -1)', ['E1023:', 'E1023:']) endfunc func Test_getreg_empty_list() |