8 my $file="../lib/unicore/CaseFolding.txt";
10 or die "Failed to read '$file' from '".cwd()."': $!";
13 my ($line,$comment)= split/\s+#\s+/, $_;
14 my ($cp,$type,@fc)=split/[\s;]+/,$line||'';
15 next unless $type and ($type eq 'F' or $type eq 'C');
20 push @str,$chr if $cpv<128 or $cpv>256;
22 push @str,"do{my \$c=$chr; utf8::upgrade(\$c); \$c}"
25 foreach my $str ( @str ) {
26 my $expr="$str=~/@fc/ix";
27 my $t=($cpv > 256 || $str=~/^do/) ? "unicode" : "latin";
29 qq[ok($expr,'$chr=~/@fc/ix - $comment ($t string)')];
30 $tests[-1]="TODO: { local \$TODO='[13:41] <BinGOs> cue *It is all Greek to me* joke.';\n$tests[-1] }"
31 if $cp eq '0390' or $cp eq '03B0';
35 eval join ";\n","plan tests=>".($count-1),@tests,"1"