summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-19 17:33:59 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-19 17:33:59 +0000
commit1aeab75ab913b2442f1de7300d375422255ad122 (patch)
tree8f24e16b46838bf5ab71c8e0a10feb37319d76b2 /t
parent87d7fd28459b8274079ce3260d3e07e306aa70d8 (diff)
downloadperl-1aeab75ab913b2442f1de7300d375422255ad122.tar.gz
fix bug in backtracking optimizer (from Makoto Ishisone
<ishisone@sra.co.jp>) p4raw-id: //depot/perl@5151
Diffstat (limited to 't')
-rwxr-xr-xt/op/pat.t15
1 files changed, 14 insertions, 1 deletions
diff --git a/t/op/pat.t b/t/op/pat.t
index 439796d239..142b82e2ad 100755
--- a/t/op/pat.t
+++ b/t/op/pat.t
@@ -4,7 +4,7 @@
# the format supported by op/regexp.t. If you want to add a test
# that does fit that format, add it to op/re_tests, not here.
-print "1..207\n";
+print "1..210\n";
BEGIN {
chdir 't' if -d 't';
@@ -978,3 +978,16 @@ $test++;
print "not " if "@b" ne "@c";
print "ok $test\n";
$test++;
+
+# see if backtracking optimization works correctly
+"\n\n" =~ /\n $ \n/x or print "not ";
+print "ok $test\n";
+$test++;
+
+"\n\n" =~ /\n* $ \n/x or print "not ";
+print "ok $test\n";
+$test++;
+
+"\n\n" =~ /\n+ $ \n/x or print "not ";
+print "ok $test\n";
+$test++;