diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-01-27 20:56:30 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-01-27 20:56:30 -0800 |
commit | 3f4d61f74b71a21ee9c5d6c8acfecb9b7b3b1c90 (patch) | |
tree | 0bac9bd1e159d33cb81bfd658ef370bd02d86a50 | |
parent | d114ecc0f33a1dca34278b596b55efd7e63c3aee (diff) | |
download | txr-3f4d61f74b71a21ee9c5d6c8acfecb9b7b3b1c90.tar.gz txr-3f4d61f74b71a21ee9c5d6c8acfecb9b7b3b1c90.tar.bz2 txr-3f4d61f74b71a21ee9c5d6c8acfecb9b7b3b1c90.zip |
matcher: new broken test case: bad order of checks.
* tests/011/patmatch.tl: Even though bar mismatches
foo, the second element @(all) is processed and
tries to collect the list. This results in an
error due to the list being improper.
-rw-r--r-- | tests/011/patmatch.tl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/011/patmatch.tl b/tests/011/patmatch.tl index af86aaef..60b28b63 100644 --- a/tests/011/patmatch.tl +++ b/tests/011/patmatch.tl @@ -75,6 +75,8 @@ (test (when-match @(or @(all @x)) '(1 2 3) x) (1 2 3)) +(test (when-match (foo @(all @x)) '(bar (1 2 . 3)) x) nil) + (test (if-match @(or (@x 3 3) (1 @x 3) (1 2 @x)) '(1 2 3) x) 2) (test (if-match @(op <= 10 @1 13) 11 :yes :no) :yes) (test (when-match @(let x @(op <= 10 @1 13)) 11 x) 11) |