0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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:
Bram Moolenaar
2021-04-05 21:05:26 +02:00
parent 58fb7c39a0
commit 0d351a04e1
2 changed files with 6 additions and 0 deletions

View File

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

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2724,
/**/
2723,
/**/