0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.4600: Vim9: not enough test coverage for executing :def function

Problem:    Vim9: not enough test coverage for executing :def function.
Solution:   Add a few more tests.  Fix inconsistencies.
This commit is contained in:
Bram Moolenaar
2022-03-20 17:46:06 +00:00
parent a4df834a92
commit 6b8c7ba062
7 changed files with 54 additions and 35 deletions

View File

@@ -2209,6 +2209,11 @@ def Test_unlet()
unlet dd[4]
assert_equal({b: 2}, dd)
# null key works like empty string
dd = {'': 1, x: 9}
unlet dd[null_string]
assert_equal({x: 9}, dd)
# list unlet
var ll = [1, 2, 3, 4]
unlet ll[1]