summaryrefslogtreecommitdiff
path: root/ext/XS-APItest
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-11-28 20:16:06 -0700
committerKarl Williamson <public@khwilliamson.com>2012-11-29 08:59:03 -0700
commitf91dcd139f8093525e1a00c3803de98b1bf89cab (patch)
treec04a824820a33b47469fb88c742edccca993a3b3 /ext/XS-APItest
parentd65654cb6cbb4fc9585a24b036a3a7a4cc1f1fa5 (diff)
downloadperl-f91dcd139f8093525e1a00c3803de98b1bf89cab.tar.gz
Make isIDFIRST_uni() return identically as isIDFIRST_utf8()
These two macros should have the same results for the same input code points. Prior to this patch, the _uni() macro returned the official Unicode ID_Start property, and the _utf8() macro returned Perl's slightly restricted definition. Now both return Perl's.
Diffstat (limited to 'ext/XS-APItest')
-rw-r--r--ext/XS-APItest/t/handy.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/XS-APItest/t/handy.t b/ext/XS-APItest/t/handy.t
index d6c8df69e4..4c852c51d4 100644
--- a/ext/XS-APItest/t/handy.t
+++ b/ext/XS-APItest/t/handy.t
@@ -57,6 +57,10 @@ foreach my $name (sort keys %properties) {
last if $above_latins > 5;
}
+ # This makes sure we are using the Perl definition of idfirst, and not the
+ # Unicode. There are a few differences.
+ push @code_points, ord "\N{ESTIMATED SYMBOL}" if $name eq 'idfirst';
+
# And finally one non-Unicode code point.
push @code_points, 0x110000; # Above Unicode, no prop should match
no warnings 'non_unicode';