diff options
Diffstat (limited to 'src/testdir/test_vim9_assign.vim')
-rw-r--r-- | src/testdir/test_vim9_assign.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_assign.vim b/src/testdir/test_vim9_assign.vim index 44a8fcbefb..0a25ca4a7e 100644 --- a/src/testdir/test_vim9_assign.vim +++ b/src/testdir/test_vim9_assign.vim @@ -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] |