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