summaryrefslogtreecommitdiffstats
path: root/tests/011
diff options
context:
space:
mode:
Diffstat (limited to 'tests/011')
-rw-r--r--tests/011/patmatch.tl4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/011/patmatch.tl b/tests/011/patmatch.tl
index 7768e89b..347af4eb 100644
--- a/tests/011/patmatch.tl
+++ b/tests/011/patmatch.tl
@@ -161,6 +161,10 @@
(test (when-match (rcons @a @b) '(rcons 1 2) (list a b)) (1 2))
(test (let ((h #H(() (a 1) (b 2))))
+ (when-match @[h x] 'a x))
+ a)
+
+(test (let ((h #H(() (a 1) (b 2))))
(when-match @[h x y] 'a (list x y)))
(a 1))