forked from aniani/vim
patch 8.2.0619: null dict is not handled like an empty dict
Problem: Null dict is not handled like an empty dict. Solution: Fix the code and add tests. (Yegappan Lakshmanan, closes #5968)
This commit is contained in:
@@ -96,13 +96,6 @@ func Test_loop_over_null_list()
|
||||
endfor
|
||||
endfunc
|
||||
|
||||
func Test_compare_null_dict()
|
||||
call assert_fails('let x = test_null_dict()[10]')
|
||||
call assert_equal({}, {})
|
||||
call assert_equal(test_null_dict(), test_null_dict())
|
||||
call assert_notequal({}, test_null_dict())
|
||||
endfunc
|
||||
|
||||
func Test_set_reg_null_list()
|
||||
call setreg('x', test_null_list())
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user