diff options
Diffstat (limited to 'tests/011/patmatch.tl')
-rw-r--r-- | tests/011/patmatch.tl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/011/patmatch.tl b/tests/011/patmatch.tl index 4b44eca9..c9eb3d39 100644 --- a/tests/011/patmatch.tl +++ b/tests/011/patmatch.tl @@ -355,7 +355,10 @@ (mtest (when-match `` "" t) t (when-match `abc` "abc" t) t - (when-match `@a` "abc" a) "abc") + (when-match `abc` "abcdef" t) nil + (when-match `@a` "abc" a) "abc" + (let ((x "foo")) (when-match `@x` "foobar" t)) nil + (let ((x "foo")) (when-match `@x` "foo" x)) "foo") (mtest (when-match `@a@b` "abc" a) :error |