comparison src/testdir/test_vim9_builtin.vim @ 27225:95f202f77cbb v8.2.4141

patch 8.2.4141: Vim9 builtin functions test fails Commit: https://github.com/vim/vim/commit/17dd51963367495f75b0f0a73139081dd7b25500 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 18 21:42:37 2022 +0000 patch 8.2.4141: Vim9 builtin functions test fails Problem: Vim9 builtin functions test fails. Solution: Add "scriptversion" item to maparg() result.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Jan 2022 22:45:03 +0100
parents 7045e9308ca3
children ec2ba9acec1b
comparison
equal deleted inserted replaced
27224:1af153e99343 27225:95f202f77cbb
2276 lhs: 'foo', 2276 lhs: 'foo',
2277 lhsraw: 'foo', 2277 lhsraw: 'foo',
2278 nowait: 0, 2278 nowait: 0,
2279 expr: 0, 2279 expr: 0,
2280 sid: SID(), 2280 sid: SID(),
2281 scriptversion: 999999,
2281 rhs: 'bar', 2282 rhs: 'bar',
2282 buffer: 0}) 2283 buffer: 0})
2283 unmap foo 2284 unmap foo
2284 CheckDefAndScriptFailure(['maparg(1)'], ['E1013: Argument 1: type mismatch, expected string but got number', 'E1174: String required for argument 1']) 2285 CheckDefAndScriptFailure(['maparg(1)'], ['E1013: Argument 1: type mismatch, expected string but got number', 'E1174: String required for argument 1'])
2285 CheckDefAndScriptFailure(['maparg("a", 2)'], ['E1013: Argument 2: type mismatch, expected string but got number', 'E1174: String required for argument 2']) 2286 CheckDefAndScriptFailure(['maparg("a", 2)'], ['E1013: Argument 2: type mismatch, expected string but got number', 'E1174: String required for argument 2'])