mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.2724: Vim9: concatenating to list in dict not tested
Problem: Vim9: concatenating to list in dict not tested. Solution: Add a test. (issue #8068)
This commit is contained in:
@@ -1152,6 +1152,10 @@ def Test_assign_dict_with_op()
|
||||
dd.a.b = [0]
|
||||
dd.a.b += [1]
|
||||
assert_equal({a: {b: [0, 1]}}, dd)
|
||||
|
||||
var dab = {a: ['b']}
|
||||
dab.a[0] ..= 'c'
|
||||
assert_equal({a: ['bc']}, dab)
|
||||
END
|
||||
CheckDefAndScriptSuccess(lines)
|
||||
enddef
|
||||
|
Reference in New Issue
Block a user