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:
4fa6d9d
)
UCD.t: Add test for non-Unicode code point
author
Karl Williamson
<public@khwilliamson.com>
Thu, 3 Mar 2011 23:53:20 +0000
(16:53 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Fri, 4 Mar 2011 02:26:16 +0000
(19:26 -0700)
lib/Unicode/UCD.t
patch
|
blob
|
history
diff --git
a/lib/Unicode/UCD.t
b/lib/Unicode/UCD.t
index
a0ebf7e
..
c22c762
100644
(file)
--- a/
lib/Unicode/UCD.t
+++ b/
lib/Unicode/UCD.t
@@
-17,12
+17,14
@@
use strict;
use Unicode::UCD;
use Test::More;
-BEGIN { plan tests => 2
69
};
+BEGIN { plan tests => 2
70
};
use Unicode::UCD 'charinfo';
my $charinfo;
+is(charinfo(0x110000), undef, "Verify charinfo() of non-unicode is undef");
+
$charinfo = charinfo(0); # Null is often problematic, so test it.
is($charinfo->{code}, '0000', '<control>');