mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 8.2.4678: Vim9: not all code is tested
Problem: Vim9: not all code is tested. Solution: Add a few more tests.
This commit is contained in:
@@ -1538,6 +1538,14 @@ def Test_lockvar()
|
||||
d.a = 7
|
||||
assert_equal({a: 7, b: 5}, d)
|
||||
|
||||
caught = false
|
||||
try
|
||||
lockvar d.c
|
||||
catch /E716/
|
||||
caught = true
|
||||
endtry
|
||||
assert_true(caught)
|
||||
|
||||
var lines =<< trim END
|
||||
vim9script
|
||||
g:bl = 0z1122
|
||||
|
||||
Reference in New Issue
Block a user