This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove workaround for distros needing dot in @INC
[perl5.git] / t / uni / lower.t
index 76df6de..a215f60 100644 (file)
@@ -1,9 +1,18 @@
 BEGIN {
     chdir 't' if -d 't';
-    @INC = qw(../lib uni .);
-    require "case.pl";
+    unless (defined &DynaLoader::boot_DynaLoader) {
+      print("1..0 # miniperl: no Unicode::Normalize");
+      exit(0);
+    }
+    require "./uni/case.pl";
 }
 
-casetest("Lower", \%utf8::ToSpecLower,
-        sub { lc $_[0] }, sub { my $a = ""; lc ($_[0] . $a) },
-        sub { lcfirst $_[0] }, sub { my $a = ""; lcfirst ($_[0] . $a) });
+use feature 'unicode_strings';
+
+casetest(0, # No extra tests run here,
+       "Lowercase_Mapping",
+        lc                             => sub { lc $_[0] },
+       lc_with_appended_null_arg      => sub { my $a = ""; lc ($_[0] . $a) },
+       lcfirst                        => sub { lcfirst $_[0] },
+       lcfirst_with_appended_null_arg => sub { my $a = ""; lcfirst ($_[0] . $a) }
+       );