1
0
forked from aniani/vim

patch 8.2.4361: Vim9: some tests fail

Problem:    Vim9: some tests fail.
Solution:   Fix the tests, mostly by removing "s:".
This commit is contained in:
Bram Moolenaar
2022-02-12 20:34:50 +00:00
parent a749a42ed2
commit 62b191c387
6 changed files with 15 additions and 12 deletions

View File

@@ -612,7 +612,8 @@ func Test_function_with_funcref()
call assert_equal(4, Ref('text'))
END
call v9.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 v9.CheckTransVim9Success(lines)
endfunc