Mercurial > vim
comparison src/testdir/test_vim9_builtin.vim @ 25224:10a5eb15a3bf v8.2.3148
patch 8.2.3148: Vim9: function arg type check does not handle base offset
Commit: https://github.com/vim/vim/commit/5231224e11bf468f5366a7400414368908c40795
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 11 18:23:19 2021 +0200
patch 8.2.3148: Vim9: function arg type check does not handle base offset
Problem: Vim9: function arg type check does not handle base offset.
Solution: Take the base offset into account when checking builtin function
argument types.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 11 Jul 2021 18:30:03 +0200 |
parents | 9ead67e3c696 |
children | a703b3f28ef4 |
comparison
equal
deleted
inserted
replaced
25223:e9d91ed52493 | 25224:10a5eb15a3bf |
---|---|
2303 CheckDefAndScriptFailure2(['virtcol(1.1)'], 'E1013: Argument 1: type mismatch, expected string but got float', 'E1174: String required for argument 1') | 2303 CheckDefAndScriptFailure2(['virtcol(1.1)'], 'E1013: Argument 1: type mismatch, expected string but got float', 'E1174: String required for argument 1') |
2304 enddef | 2304 enddef |
2305 | 2305 |
2306 def Test_win_execute() | 2306 def Test_win_execute() |
2307 assert_equal("\n" .. winnr(), win_execute(win_getid(), 'echo winnr()')) | 2307 assert_equal("\n" .. winnr(), win_execute(win_getid(), 'echo winnr()')) |
2308 assert_equal("\n" .. winnr(), 'echo winnr()'->win_execute(win_getid())) | |
2309 assert_equal("\n" .. winnr(), win_execute(win_getid(), 'echo winnr()', 'silent')) | |
2308 assert_equal('', win_execute(342343, 'echo winnr()')) | 2310 assert_equal('', win_execute(342343, 'echo winnr()')) |
2309 enddef | 2311 enddef |
2310 | 2312 |
2311 def Test_win_findbuf() | 2313 def Test_win_findbuf() |
2312 CheckDefFailure(['win_findbuf("a")'], 'E1013: Argument 1: type mismatch, expected number but got string') | 2314 CheckDefFailure(['win_findbuf("a")'], 'E1013: Argument 1: type mismatch, expected number but got string') |