summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/011/patmatch.tl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/011/patmatch.tl b/tests/011/patmatch.tl
index 08bcd0f7..81cda935 100644
--- a/tests/011/patmatch.tl
+++ b/tests/011/patmatch.tl
@@ -247,6 +247,20 @@
((@x @y) :no-match)) 1 2 3]
:error)))
+(test
+ [(lambda-match
+ ((@a @b) (list a b))
+ ((@x . @y) (list x y)))
+ 1 2 3]
+ (1 (2 3)))
+
+(test
+ [(lambda-match
+ ((@a @b) (list a b))
+ (@x x))
+ 1 2 3]
+ (1 2 3))
+
(defun-match fib
((0) 1)
((1) 1)