comparison src/testdir/test_listdict.vim @ 17375:6f36caf4f702 v8.1.1686

patch 8.1.1686: "*" of "*{" is recognized as multipy operator commit https://github.com/vim/vim/commit/2898ebb44cee62a70a11b44a97bdad8cc00157b1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 14 13:41:34 2019 +0200 patch 8.1.1686: "*" of "*{" is recognized as multipy operator Problem: "*" of "*{" is recognized as multipy operator. (Yasuhiro Matsumoto) Solution: Check for the "{".
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Jul 2019 13:45:05 +0200
parents 6604ecb7a615
children 2558f90045e5
comparison
equal deleted inserted replaced
17374:cfbd83fc1286 17375:6f36caf4f702
280 call assert_equal(expected, d.func(string(remove(d, 'func')))) 280 call assert_equal(expected, d.func(string(remove(d, 'func'))))
281 endfunc 281 endfunc
282 282
283 func Test_dict_literal_keys() 283 func Test_dict_literal_keys()
284 call assert_equal({'one': 1, 'two2': 2, '3three': 3, '44': 4}, *{one: 1, two2: 2, 3three: 3, 44: 4},) 284 call assert_equal({'one': 1, 'two2': 2, '3three': 3, '44': 4}, *{one: 1, two2: 2, 3three: 3, 44: 4},)
285 call assert_equal('2 3', trim(execute('echo 2 *{blue: 3}.blue')))
285 endfunc 286 endfunc
286 287
287 " Nasty: deepcopy() dict that refers to itself (fails when noref used) 288 " Nasty: deepcopy() dict that refers to itself (fails when noref used)
288 func Test_dict_deepcopy() 289 func Test_dict_deepcopy()
289 let d = {1:1, 2:2} 290 let d = {1:1, 2:2}