projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c757d3
)
charnames.t: Make sure code point aliasess are right
author
Karl Williamson
<public@khwilliamson.com>
Thu, 7 Oct 2010 04:16:56 +0000
(22:16 -0600)
committer
Father Chrysostomos
<sprout@cpan.org>
Wed, 13 Oct 2010 05:09:01 +0000
(22:09 -0700)
Some code points have two (possibly more names). This makes sure that
all work.
lib/charnames.t
patch
|
blob
|
history
diff --git
a/lib/charnames.t
b/lib/charnames.t
index
3775f20
..
4944266
100644
(file)
--- a/
lib/charnames.t
+++ b/
lib/charnames.t
@@
-955,7
+955,11
@@
is("\N{U+1D0C5}", "\N{BYZANTINE MUSICAL SYMBOL FTHORA SKLIRON CHROMA VASIS}");
next unless $_;
my ($hex, $name) = split ";";
my $i = CORE::hex $hex;
+
+ # Make sure that both aliases (the one in UnicodeData, and the one we
+ # just read) return the same code point.
test_vianame($i, $hex, $name);
+ test_vianame($i, $hex, $names[$i]);
}
close $fh;