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