0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

patch 8.2.4407: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add more tests.  Avoid giving two errors.  Remove dead code.
This commit is contained in:
Bram Moolenaar
2022-02-17 13:08:26 +00:00
parent 2438430863
commit e08be09a08
5 changed files with 177 additions and 107 deletions

View File

@@ -1528,6 +1528,17 @@ def Test_lockvar()
assert_equal({a: 7, b: 5}, d)
var lines =<< trim END
vim9script
g:bl = 0z1122
lockvar g:bl
def Tryit()
g:bl[1] = 99
enddef
Tryit()
END
v9.CheckScriptFailure(lines, 'E741:', 1)
lines =<< trim END
vim9script
var theList = [1, 2, 3]
def SetList()