Skip to content

Commit 5547690

Browse files
committed
add test for slice assign
1 parent d891210 commit 5547690

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/test1.ok

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
(let = (dot (dot foo bar) baz) 123)
2323
(let = (subscript (subscript foo (bar)) (baz)) 456)
2424
(let = (dot (subscript foo (bar)) baz) 789)
25+
(let = (slice foo 1 2) (list 3 4))
2526
(unlet a b c)
2627
(lockvar a b c)
2728
(lockvar 1 a b c)

test/test1.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ let [a, b; c] .= [1, 2, 3]
2626
let foo.bar.baz = 123
2727
let foo[bar()][baz()] = 456
2828
let foo[bar()].baz = 789
29+
let foo[1:2] = [3, 4]
2930
unlet a b c
3031
lockvar a b c
3132
lockvar 1 a b c

0 commit comments

Comments
 (0)