summaryrefslogtreecommitdiff
path: root/t/lib/charnames.t
diff options
context:
space:
mode:
Diffstat (limited to 't/lib/charnames.t')
-rw-r--r--t/lib/charnames.t12
1 files changed, 9 insertions, 3 deletions
diff --git a/t/lib/charnames.t b/t/lib/charnames.t
index 14da2e0f7b..d00396fb4a 100644
--- a/t/lib/charnames.t
+++ b/t/lib/charnames.t
@@ -8,7 +8,7 @@ BEGIN {
}
$| = 1;
-print "1..13\n";
+print "1..14\n";
use charnames ':full';
@@ -44,8 +44,7 @@ $encoded_alpha = "\316\261";
$encoded_bet = "\327\221";
sub to_bytes {
- use bytes;
- "".shift;
+ pack"a*", shift;
}
{
@@ -90,3 +89,10 @@ sub to_bytes {
print "ok 13\n";
}
+{
+ use charnames qw(:full);
+ use utf8;
+ print "not " unless "\x{100}\N{CENT SIGN}" eq "\x{100}"."\N{CENT SIGN}";
+ print "ok 14\n";
+}
+