X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fpat.t;h=142b82e2ad1f2ca0bbf78a6a86fc58d0a8149465;hb=1aeab75ab913b2442f1de7300d375422255ad122;hp=439796d239244ccb75e2f3f72e257e866709b3f5;hpb=aeaf5620e0d123aeb6a6ba30ef2e89c6f5fc26d0;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/pat.t b/t/op/pat.t index 439796d..142b82e 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++;