vim-patch:8.2.4361: Vim9: some tests fail

Problem:    Vim9: some tests fail.
Solution:   Fix the tests, mostly by removing "s:".

62b191c387

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-04-15 17:12:59 +08:00
parent f04125a935
commit b29df57ba7
5 changed files with 13 additions and 12 deletions

View File

@@ -613,7 +613,8 @@ func Test_function_with_funcref()
call assert_equal(4, Ref('text'))
END
call CheckTransLegacySuccess(lines)
" cannot create s: variable in :def function
" skip CheckTransDefSuccess(), cannot assign to script variable
call map(lines, {k, v -> v =~ 'legacy' ? v : substitute(v, 's:', '', 'g')})
call CheckTransVim9Success(lines)
endfunc