diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-02-13 11:44:44 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-02-13 11:50:27 -0700 |
commit | d6495f5d84361750b54f6ff0916cc93c2a501a2d (patch) | |
tree | 8df3d16c8f5bfc4c9944bdc46bb5579ccfe52917 | |
parent | 9f6df31a3476b575d0861637103b0a0a66a2607f (diff) | |
download | perl-d6495f5d84361750b54f6ff0916cc93c2a501a2d.tar.gz |
charnames.t: viacode doesn't return Unicode_1 name always
There are now four characters which have a different preferred name.
-rw-r--r-- | lib/charnames.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/charnames.t b/lib/charnames.t index 09a4314905..8aba9be9e0 100644 --- a/lib/charnames.t +++ b/lib/charnames.t @@ -1161,7 +1161,13 @@ is("\N{U+1D0C5}", "\N{BYZANTINE MUSICAL SYMBOL FTHORA SKLIRON CHROMA VASIS}", 'V # Otherwise, test that the name and code point map # correctly. $all_pass &= test_vianame($i, $hex, $names[$i]); - $all_pass &= is(charnames::viacode($i), $names[$i], "Verify viacode(0x$hex) is \"$names[$i]\""); + + # These four code points have a different Unicode1 name than + # regular name, and viacode has already specifically tested + # for the regular name + if ($i != 0x0a && $i != 0x0c && $i != 0x0d && $i != 0x85) { + $all_pass &= is(charnames::viacode($i), $names[$i], "Verify viacode(0x$hex) is \"$names[$i]\""); + } # And make sure that a non-algorithmically named code # point doesn't also map to one that is. |