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

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:
Bram Moolenaar
2020-04-23 13:38:02 +02:00
parent db950e4c03
commit ea04a6e8ba
12 changed files with 128 additions and 27 deletions

View File

@@ -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