aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/regmin.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regmin.test b/tests/regmin.test
index 15a1932..ed4f1cd 100644
--- a/tests/regmin.test
+++ b/tests/regmin.test
@@ -44,4 +44,12 @@ test regexpmin-2.2 {utf8 min repeat} utf8 {
regexp -inline {a\u00df+?} a\udf\udf\udf\udf\ub5z
} "a\udf"
+test regexpmin-3.1 {non-capturing paren} {
+ regexp -inline {x(?:a|b)?} xababcabc
+} {xa}
+
+test regexpmin-3.2 {non-capturing paren} {
+ regexp -inline {x(?:a|b)?.*(b|c)} xababcabc
+} {xababcabc c}
+
testreport