0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4410: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add a few more tests. Remove dead code.
This commit is contained in:
Bram Moolenaar
2022-02-17 19:44:07 +00:00
parent 6296d1e60e
commit 0c7f2610de
6 changed files with 55 additions and 32 deletions

View File

@@ -2104,6 +2104,13 @@ def Test_unlet()
unlet ll[-2 : -1]
assert_equal([1, 2], ll)
g:nrdict = {1: 1, 2: 2}
g:idx = 1
unlet g:nrdict[g:idx]
assert_equal({2: 2}, g:nrdict)
unlet g:nrdict
unlet g:idx
v9.CheckDefFailure([
'var ll = [1, 2]',
'll[1 : 2] = 7',