summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2010-08-25 17:36:45 +0200
committerAbigail <abigail@abigail.be>2010-08-25 17:36:45 +0200
commitc920e01829265990eb68b8bd0d14811ffbb42650 (patch)
treecf2ed867d088bb41b0082d410b209c366e2bd716
parent693853b133edc1e3f92d144d587179879b3c6d43 (diff)
downloadperl-c920e01829265990eb68b8bd0d14811ffbb42650.tar.gz
Tests for bug 77414
-rw-r--r--t/re/pat.t22
1 files changed, 21 insertions, 1 deletions
diff --git a/t/re/pat.t b/t/re/pat.t
index 8220bae286..447ac8f611 100644
--- a/t/re/pat.t
+++ b/t/re/pat.t
@@ -23,7 +23,7 @@ BEGIN {
}
-plan tests => 360; # Update this when adding/deleting tests.
+plan tests => 366; # Update this when adding/deleting tests.
run_tests() unless caller;
@@ -1024,6 +1024,26 @@ sub run_tests {
ok($e !~ m/.*?[xyz]$/,"latin string against /.*?[xyz]\$/ - rt75680");
ok($e !~ m/(.*?)[,\p{isSpace}]+((?:\p{isAlpha}[\p{isSpace}\.]{1,2})+)\p{isSpace}*$/,"latin string against big pattern - rt75680");
}
+
+ {
+ #
+ # Tests for bug 77414.
+ #
+
+ local $Message = '\p property after empty * match';
+ {
+ local $TODO = "Bug 77414";
+ ok "1" =~ /\s*\pN/;
+ ok "-" =~ /\s*\p{Dash}/;
+ ok " " =~ /\w*\p{Blank}/;
+ }
+
+ ok "1" =~ /\s*\pN+/;
+ ok "-" =~ /\s*\p{Dash}{1}/;
+ ok " " =~ /\w*\p{Blank}{1,4}/;
+
+ }
+
} # End of sub run_tests
1;