diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-27 18:59:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-27 18:59:25 +0100 |
commit | 32105ae88f3aa6a6af30336f0bc9f8eb81292cd7 (patch) | |
tree | e414430d7c9e30127d37998fc0e427f3c4a8cdf3 /src/testdir/test_vim9_builtin.vim | |
parent | 79efa2e3b3cdab8c21d95ba4ed9cb573566af531 (diff) |
patch 8.2.2664: Vim9: not enough function arguments checked for stringv8.2.2664
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in balloon functions. Refactor function arguments.
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 25db01288f..766a5bcfbc 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -125,6 +125,19 @@ def Test_append() assert_equal(['0', 'one', '1', 'two', '2'], getline(1, 6)) enddef +def Test_balloon_show() + CheckGui + CheckFeature balloon_eval + + assert_fails('balloon_show(true)', 'E1174:') +enddef + +def Test_balloon_split() + CheckFeature balloon_eval + + assert_fails('balloon_split(true)', 'E1174:') +enddef + def Test_browse() CheckFeature browse @@ -142,9 +155,14 @@ def Test_browse() CheckDefExecAndScriptFailure(lines, 'E1174: String required for argument 4') enddef +def Test_bufexists() + assert_fails('bufexists(true)', 'E1174') +enddef + def Test_buflisted() var res: bool = buflisted('asdf') assert_equal(false, res) + assert_fails('buflisted(true)', 'E1174') enddef def Test_bufname() @@ -176,6 +194,8 @@ def Test_bufwinid() only bwipe SomeFile bwipe OtherFile + + assert_fails('bufwinid(true)', 'E1138') enddef def Test_call_call() |