summaryrefslogtreecommitdiffstats
path: root/tests/reg.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-10-19 17:42:43 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-10-19 17:42:43 (GMT)
commitb8c0c06fdf9f099f27f114fc9c92b7786dce13a5 (patch)
tree5ac5633bb80171473d9ef18687b9800b3dadc464 /tests/reg.test
parentb22ebcce6b9f2e861a4c9fed13421df0c76769d6 (diff)
downloadtcl-b8c0c06fdf9f099f27f114fc9c92b7786dce13a5.zip
tcl-b8c0c06fdf9f099f27f114fc9c92b7786dce13a5.tar.gz
tcl-b8c0c06fdf9f099f27f114fc9c92b7786dce13a5.tar.bz2
Adaptation of the patch re-fixconstraintloops.patch from
http://www.postgresql.org/message-id/19394.1444865029@sss.pgh.pa.us
Diffstat (limited to 'tests/reg.test')
-rw-r--r--tests/reg.test25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/reg.test b/tests/reg.test
index 0ebfa11..b259ce5 100644
--- a/tests/reg.test
+++ b/tests/reg.test
@@ -1068,6 +1068,31 @@ test reg-33.13 {Bug 1810264 - infinite loop} {
test reg-33.14 {Bug 1810264 - super-expensive expression} nonPortable {
regexp {(x{200}){200}$y} {x}
} 0
+
+test reg-33.15 {constraint fixes} {
+ regexp {(^)+^} x
+} 1
+test reg-33.16 {constraint fixes} {
+ regexp {($^)+} x
+} 0
+test reg-33.17 {constraint fixes} {
+ regexp {(^$)*} x
+} 1
+test reg-33.18 {constraint fixes} {
+ regexp {(^(?!aa))+} {aa bb cc}
+} 0
+test reg-33.19 {constraint fixes} {
+ regexp {(^(?!aa)(?!bb)(?!cc))+} {aa x}
+} 0
+test reg-33.20 {constraint fixes} {
+ regexp {(^(?!aa)(?!bb)(?!cc))+} {bb x}
+} 0
+test reg-33.21 {constraint fixes} {
+ regexp {(^(?!aa)(?!bb)(?!cc))+} {cc x}
+} 0
+test reg-33.22 {constraint fixes} {
+ regexp {(^(?!aa)(?!bb)(?!cc))+} {dd x}
+} 1
# cleanup
::tcltest::cleanupTests