summaryrefslogtreecommitdiff
path: root/lib/Unicode/UCD.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Unicode/UCD.t')
-rw-r--r--lib/Unicode/UCD.t18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/Unicode/UCD.t b/lib/Unicode/UCD.t
index 52075b807f..3ade6b3717 100644
--- a/lib/Unicode/UCD.t
+++ b/lib/Unicode/UCD.t
@@ -18,7 +18,7 @@ use strict;
use Unicode::UCD;
use Test::More;
-BEGIN { plan tests => 188 };
+BEGIN { plan tests => 194 };
use Unicode::UCD 'charinfo';
@@ -238,6 +238,22 @@ ok( charinrange($ranges, "13a0"));
ok( charinrange($ranges, "13f4"));
ok(!charinrange($ranges, "13f5"));
+use Unicode::UCD qw(general_categories);
+
+my $gc = general_categories();
+
+ok(exists $gc->{L}, 'has L');
+is($gc->{L}, 'Letter', 'L is Letter');
+is($gc->{Lu}, 'UppercaseLetter', 'Lu is UppercaseLetter');
+
+use Unicode::UCD qw(bidi_types);
+
+my $bt = bidi_types();
+
+ok(exists $bt->{L}, 'has L');
+is($bt->{L}, 'Left-to-Right', 'L is Left-to-Right');
+is($bt->{AL}, 'Right-to-Left Arabic', 'AL is Right-to-Left Arabic');
+
is(Unicode::UCD::UnicodeVersion, '5.0.0', 'UnicodeVersion');
use Unicode::UCD qw(compexcl);