Handle PERLIO= and document a bit.
[p5sagit/p5-mst-13.2.git] / t / op / regmesg.t
index 82f6ee9..8241941 100644 (file)
@@ -78,6 +78,10 @@ my @death =
  '/[[.barf.]]/' => 'POSIX syntax [. .] is reserved for future extensions in regex; marked by {#} in m/[[.barf.]{#}]/',
   
  '/[z-a]/' => 'Invalid [] range "z-a" in regex; marked by {#} in m/[z-a{#}]/',
+
+ '/\p/' => 'Empty \p{} in regex; marked by {#} in m/\p{#}/',
+
+ '/\P{}/' => 'Empty \P{} in regex; marked by {#} in m/\P{{#}}/',
 );
 
 ##
@@ -130,7 +134,7 @@ while (@death)
     if ($@ !~ /^\Q$result/) {
        print "# For $regex, expected:\n#  $result\n# Got:\n#  $@\n#\nnot ";
     }
-    print "ok $count\n";
+    print "ok $count - $regex\n";
 }
 
 
@@ -172,7 +176,7 @@ not ok $count
 EOM
        next;
     }
-    print "ok $count\n";
+    print "ok $count - $regex\n";
 }