Skip to content

Commit 18e1afb

Browse files
committed
add tests for .. associativity
1 parent 0cd4964 commit 18e1afb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/test1.ok

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
(let %= a 5)
6060
(let ..= a 'foo')
6161
(echo (concat (concat 'foo' 'bar') 'baz'))
62+
(echo (concat 'foo' (concat 'bar' 'baz')))
63+
(echo (concat (concat 'foo' 'bar') 'baz'))
6264
(let = a '🐥')
6365
(const = a 1)
6466
(const = (a b) (list 1 2))

test/test1.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ let a /= 4
6666
let a %= 5
6767
let a ..= 'foo'
6868
echo ('foo' .. 'bar')..'baz'
69+
echo 'foo' .. ('bar'..'baz')
70+
echo 'foo' .. 'bar' .. 'baz'
6971
let a = '🐥'
7072
const a = 1
7173
const [a, b] = [1, 2]

0 commit comments

Comments
 (0)