Mercurial > vim
comparison src/testdir/test_vim9_builtin.vim @ 29861:8dca33bca038 v9.0.0269
patch 9.0.0269: getscriptinfo() does not include the version
Commit: https://github.com/vim/vim/commit/520f6ef60a59f7b5f3da9199999d13dbe817d3ce
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Aug 25 17:40:40 2022 +0100
patch 9.0.0269: getscriptinfo() does not include the version
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 Aug 2022 18:45:04 +0200 |
parents | 94bc352727d9 |
children | d8fc1effa724 |
comparison
equal
deleted
inserted
replaced
29860:21b386bb3f61 | 29861:8dca33bca038 |
---|---|
1894 assert_fails('getregtype("ab")', 'E1162:') | 1894 assert_fails('getregtype("ab")', 'E1162:') |
1895 setreg('"', 'ABCD', 'b') | 1895 setreg('"', 'ABCD', 'b') |
1896 getregtype('')->assert_equal("\<C-V>4") | 1896 getregtype('')->assert_equal("\<C-V>4") |
1897 enddef | 1897 enddef |
1898 | 1898 |
1899 def Test_getscriptinfo() | |
1900 v9.CheckDefAndScriptFailure(['getscriptinfo("x")'], ['E1013: Argument 1: type mismatch, expected dict<any> but got string', 'E1206: Dictionary required for argument 1']) | |
1901 enddef | |
1902 | |
1899 def Test_gettabinfo() | 1903 def Test_gettabinfo() |
1900 v9.CheckDefAndScriptFailure(['gettabinfo("x")'], ['E1013: Argument 1: type mismatch, expected number but got string', 'E1210: Number required for argument 1']) | 1904 v9.CheckDefAndScriptFailure(['gettabinfo("x")'], ['E1013: Argument 1: type mismatch, expected number but got string', 'E1210: Number required for argument 1']) |
1901 enddef | 1905 enddef |
1902 | 1906 |
1903 def Test_gettabvar() | 1907 def Test_gettabvar() |