diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/011/patmatch.tl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/011/patmatch.tl b/tests/011/patmatch.tl index f49b115d..36e30fb5 100644 --- a/tests/011/patmatch.tl +++ b/tests/011/patmatch.tl @@ -71,6 +71,9 @@ (list x y z)) (1 2 3)) +(test (if-match @(and (@x 1) (1 @x)) '(1 1) x) 1) +(test (if-match @(and (@x 1) (1 @x)) '(1 2) x) nil) + (test (when-match @(all @(or (@x @y) @z)) '((1 2) (3 4)) (list x y z)) ((1 3) (2 4) (nil nil))) |