1
0
forked from aniani/vim

patch 8.2.3281: Vim9: TODO items in tests can be taken care of

Problem:    Vim9: TODO items in tests can be taken care of.
Solution:   Update test for now working functionality. (closes #8694)
This commit is contained in:
Bram Moolenaar
2021-08-03 21:16:18 +02:00
parent 51ad850f5f
commit 23e2e11515
4 changed files with 8 additions and 21 deletions

View File

@@ -188,8 +188,7 @@ def Test_const()
var varlist = [7, 8]
const constlist = [1, varlist, 3]
varlist[0] = 77
# TODO: does not work yet
# constlist[1][1] = 88
constlist[1][1] = 88
var cl = constlist[1]
cl[1] = 88
constlist->assert_equal([1, [77, 88], 3])
@@ -197,8 +196,7 @@ def Test_const()
var vardict = {five: 5, six: 6}
const constdict = {one: 1, two: vardict, three: 3}
vardict['five'] = 55
# TODO: does not work yet
# constdict['two']['six'] = 66
constdict['two']['six'] = 66
var cd = constdict['two']
cd['six'] = 66
constdict->assert_equal({one: 1, two: {five: 55, six: 66}, three: 3})