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:
@@ -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]
|
||||
|
Reference in New Issue
Block a user