diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-08-25 17:40:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-25 17:40:40 +0100 |
commit | 520f6ef60a59f7b5f3da9199999d13dbe817d3ce (patch) | |
tree | 7982ec9430d2766a4f4f53066e2172f8311e328a /src/testdir/test_vim9_builtin.vim | |
parent | 0166e398d11a09662d783fe5db62b414045880f8 (diff) | |
download | vim-git-520f6ef60a59f7b5f3da9199999d13dbe817d3ce.tar.gz |
patch 9.0.0269: getscriptinfo() does not include the versionv9.0.0269
Problem: getscriptinfo() does not include the version. Cannot select
entries by script name.
Solution: Add the "version" item and the "name" argument. (Yegappan
Lakshmanan, closes #10962)
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 7aa81bc22..931fe671c 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -1896,6 +1896,10 @@ def Test_getregtype() getregtype('')->assert_equal("\<C-V>4") enddef +def Test_getscriptinfo() + v9.CheckDefAndScriptFailure(['getscriptinfo("x")'], ['E1013: Argument 1: type mismatch, expected dict<any> but got string', 'E1206: Dictionary required for argument 1']) +enddef + def Test_gettabinfo() v9.CheckDefAndScriptFailure(['gettabinfo("x")'], ['E1013: Argument 1: type mismatch, expected number but got string', 'E1210: Number required for argument 1']) enddef |