summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-03 16:47:30 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-03 16:47:30 +0000
commit9b4e380a0c2cfcae174bddd911f9f6437cd7d53f (patch)
treeace0dd8984ce67ae8bf0e74dfa0a3b7dcae8d86e /t/op
parentdee4fd60ac48abef5b51dded36ba5990e53c7daf (diff)
downloadperl-9b4e380a0c2cfcae174bddd911f9f6437cd7d53f.tar.gz
Unicode properties: fix L& (the #12319 didn't allow L&,
only IsL&) and Inherited (negative lookahead good); add tests for Common, Inherited, and L&. p4raw-id: //depot/perl@12320
Diffstat (limited to 't/op')
-rwxr-xr-xt/op/pat.t26
1 files changed, 25 insertions, 1 deletions
diff --git a/t/op/pat.t b/t/op/pat.t
index 63798660c7..63c5ba21fb 100755
--- a/t/op/pat.t
+++ b/t/op/pat.t
@@ -6,7 +6,7 @@
$| = 1;
-print "1..738\n";
+print "1..744\n";
BEGIN {
chdir 't' if -d 't';
@@ -2206,3 +2206,27 @@ print "# some Unicode properties\n";
print "ok 738\n";
}
+
+{
+ print "not " if "a" =~ /\p{Common}/;
+ print "ok 739\n";
+
+ print "not " unless "1" =~ /\p{Common}/;
+ print "ok 740\n";
+}
+
+{
+ print "not " if "a" =~ /\p{Inherited}/;
+ print "ok 741\n";
+
+ print "not " unless "\x{300}" =~ /\p{Inherited}/;
+ print "ok 742\n";
+}
+
+{
+ print "not " unless "a" =~ /\p{L&}/;
+ print "ok 743\n";
+
+ print "not " if "1" =~ /\p{L&}/;
+ print "ok 744\n";
+}