aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2021-01-11 21:56:54 -0600
committerGitHub <noreply@github.com>2021-01-11 21:56:54 -0600
commitc4a2636b406cb715b84e41998c07708d0e1e38ac (patch)
treef05dad8840ae67207134a2759fba135fa6d3f180 /test
parentFix quotes in README (diff)
parentMerge pull request #12 from sogaiu/comment-tweak (diff)
Merge branch 'master' into timeit-setstar
Diffstat (limited to 'test')
-rw-r--r--test/suite4.janet3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/suite4.janet b/test/suite4.janet
index f9f37c8..2397fb7 100644
--- a/test/suite4.janet
+++ b/test/suite4.janet
@@ -13,6 +13,8 @@
(regex/match `(?:(abc)){4}` "abcabcabcabc"))
"match 6")
+(assert (regex/match `\a+` `Xy`) "match 7")
+(assert (regex/match `\w+` `Xy0`) "match 8")
(assert (regex/match `cat|dog` "cat") "match 6")
(assert (regex/match `cat|dog` "dog") "match 7")
(assert (not (regex/match `cat|dog` "mouse")) "match 8")
@@ -20,5 +22,6 @@
(assert (regex/match `cat|dog|mouse` "cat") "match 10")
(assert (regex/match `cat|dog|mouse` "dog") "match 11")
(assert (regex/match `(cat|dog|mouse)+` "mousecatdog") "match 12")
+(assert (regex/match `a(cat|dog|mouse)+` "amousecatdog") "match 13")
(end-suite)