This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move the tests added to pat.t in #18248 to lc.t.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 9 Dec 2002 23:49:14 +0000 (23:49 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 9 Dec 2002 23:49:14 +0000 (23:49 +0000)
p4raw-id: //depot/maint-5.8/perl@18276

t/op/lc.t
t/op/pat.t

index a5f373e..9f02257 100644 (file)
--- a/t/op/lc.t
+++ b/t/op/lc.t
@@ -6,7 +6,7 @@ BEGIN {
     require './test.pl';
 }
 
-plan tests => 57;
+plan tests => 59;
 
 $a = "HELLO.* world";
 $b = "hello.* WORLD";
@@ -149,3 +149,13 @@ for my $a (0,1) {
     is(uc($1), "ABCDEFGH", "[perl #18931]");
 }
 
+{
+    foreach (0, 1) {
+       $a = v10.v257;
+       chop $a;
+       $a =~ s/^(\s*)(\w*)/$1\u$2/;
+       is($a, v10, "[perl #18857]");
+       $test++;
+    } 
+}
+
index 661d571..20763e4 100755 (executable)
@@ -6,7 +6,7 @@
 
 $| = 1;
 
-print "1..944\n";
+print "1..942\n";
 
 BEGIN {
     chdir 't' if -d 't';
@@ -2996,7 +2996,8 @@ print "\x{0712}" =~ /\p{Syriac1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
 print "\x{072F}" =~ /\P{Syriac1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
 
 {
-    # Change #18179: previously failed with "panic: end_shift"
+    print "# Change #18179\n";
+    # previously failed with "panic: end_shift
     my $s = "\x{100}" x 5;
     my $ok = $s =~ /(\x{100}{4})/;
     my($ord, $len) = (ord $1, length $1);
@@ -3005,15 +3006,4 @@ print "\x{072F}" =~ /\P{Syriac1}/ ? "ok $test\n" : "not ok $test\n"; $test++;
     ++$test;
 }
 
-{
-    print "# [perl #18857]\n";
-    foreach (0, 1) {
-       $a = v10.v257;
-       chop $a;
-       $a =~ s/^(\s*)(\w*)/$1\u$2/;
-       print $a eq v10 ? "ok $test\n" : "not ok $test\n";
-       $test++;
-    } 
-}
-
-# last test 944
+# last test 942