diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-06-22 19:52:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-22 19:52:27 +0200 |
commit | 7237cab8f1d1a4391372cafdb57f2d97f3b32d05 (patch) | |
tree | c6c3457afcaf57ddefd032acd00497f957006564 /src/testdir/test_assert.vim | |
parent | 831bdf8622fdfce7f02d48f847005e3909a055a8 (diff) |
patch 8.2.3036: Vim9: builtin function arguments not checked at compile timev8.2.3036
Problem: Vim9: builtin function arguments not checked at compile time.
Solution: Add more argument type specs. Check arguments to test_setmouse()
and test_gui_mouse_event(). (Yegappan Lakshmanan, closes #8425)
Diffstat (limited to 'src/testdir/test_assert.vim')
-rw-r--r-- | src/testdir/test_assert.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim index 04bd87729f..e0dc99e7c6 100644 --- a/src/testdir/test_assert.vim +++ b/src/testdir/test_assert.vim @@ -374,6 +374,8 @@ func Test_mouse_position() call test_setmouse(5, 1) call feedkeys("\<LeftMouse>", "xt") call assert_equal([0, 2, 1, 0], getpos('.')) + call assert_fails('call test_setmouse("", 2)', 'E474:') + call assert_fails('call test_setmouse(1, "")', 'E474:') bwipe! let &mouse = save_mouse endfunc |