summaryrefslogtreecommitdiff
path: root/cpan/Unicode-Collate/t/loc_ar.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Unicode-Collate/t/loc_ar.t')
-rw-r--r--cpan/Unicode-Collate/t/loc_ar.t23
1 files changed, 19 insertions, 4 deletions
diff --git a/cpan/Unicode-Collate/t/loc_ar.t b/cpan/Unicode-Collate/t/loc_ar.t
index 3e7777063e..089c30b899 100644
--- a/cpan/Unicode-Collate/t/loc_ar.t
+++ b/cpan/Unicode-Collate/t/loc_ar.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 => 8 };
+
use strict;
use warnings;
use Unicode::Collate::Locale;
-use Test;
-plan tests => 8;
+ok(1);
+
+#########################
my $objAr = Unicode::Collate::Locale->
new(locale => 'AR', normalization => undef);
-ok(1);
ok($objAr->getlocale, 'ar');
$objAr->change(level => 1);