This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Display characters as Unicode for clarity
authorKarl Williamson <khw@khw-desktop.(none)>
Fri, 15 Jan 2010 02:19:22 +0000 (19:19 -0700)
committerCraig A. Berry <craigberry@mac.com>
Sat, 29 May 2010 15:40:18 +0000 (10:40 -0500)
t/re/pat_special_cc.t

index 1138cbb..36116b8 100644 (file)
@@ -37,6 +37,7 @@ sub run_tests {
         my @plain_complement_failed;
         for my $ord (0 .. $upper_bound) {
             my $ch= chr $ord;
+            my $ord = sprintf "U+%04X", $ord;  # For display in Unicode terms
             my $plain= $ch=~/$special/ ? 1 : 0;
             my $plain_u= $ch=~/$upper/ ? 1 : 0;
             push @plain_complement_failed, "$ord-$plain-$plain_u" if $plain == $plain_u;