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