Skip to content

Commit 514045d

Browse files
committed
add test for later pattern
1 parent 6e42427 commit 514045d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/syntax.egi

+5
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@
196196
[<cons $n !<cons ,n _>> n])
197197
{1})
198198

199+
(assert-equal "later pattern"
200+
(match-all {1 1 2} (list integer)
201+
[<cons (later ,n) <cons $n _>> n])
202+
{1})
203+
199204
(assert "predicate pattern"
200205
(match {1 2 3} (list integer)
201206
{[<cons ?(eq? 1 $) _> #t]}))

0 commit comments

Comments
 (0)