summaryrefslogtreecommitdiff
path: root/cpan/Unicode-Collate/t/loc_az.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Unicode-Collate/t/loc_az.t')
-rw-r--r--cpan/Unicode-Collate/t/loc_az.t23
1 files changed, 19 insertions, 4 deletions
diff --git a/cpan/Unicode-Collate/t/loc_az.t b/cpan/Unicode-Collate/t/loc_az.t
index b8474e509f..a370a1ac51 100644
--- a/cpan/Unicode-Collate/t/loc_az.t
+++ b/cpan/Unicode-Collate/t/loc_az.t
@@ -1,15 +1,30 @@
-#!perl
+
+BEGIN {
+ unless ("A" eq pack('U', 0x41)) {
+ print "1..0 # Unicode::Collate " .
+ "cannot stringify a Unicode code point\n";
+ exit 0;
+ }
+ if ($ENV{PERL_CORE}) {
+ chdir('t') if -d 't';
+ @INC = $^O eq 'MacOS' ? qw(::lib) : qw(../lib);
+ }
+}
+
+use Test;
+BEGIN { plan tests => 72 };
+
use strict;
use warnings;
use Unicode::Collate::Locale;
-use Test;
-plan tests => 72;
+ok(1);
+
+#########################
my $objAz = Unicode::Collate::Locale->
new(locale => 'AZ', normalization => undef);
-ok(1);
ok($objAz->getlocale, 'az');
$objAz->change(level => 1);