mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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 = [0]
|
||||||
dd.a.b += [1]
|
dd.a.b += [1]
|
||||||
assert_equal({a: {b: [0, 1]}}, dd)
|
assert_equal({a: {b: [0, 1]}}, dd)
|
||||||
|
|
||||||
|
var dab = {a: ['b']}
|
||||||
|
dab.a[0] ..= 'c'
|
||||||
|
assert_equal({a: ['bc']}, dab)
|
||||||
END
|
END
|
||||||
CheckDefAndScriptSuccess(lines)
|
CheckDefAndScriptSuccess(lines)
|
||||||
enddef
|
enddef
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2724,
|
||||||
/**/
|
/**/
|
||||||
2723,
|
2723,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user