summaryrefslogtreecommitdiff
path: root/t/op/reg_fold.t
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2009-09-10 20:39:13 +0200
committerYves Orton <demerphq@gmail.com>2009-09-10 20:39:13 +0200
commita4499558ecf2e75d73756479898bf8c8dbe8a6f6 (patch)
tree5d59ba9723d6b5d114e1a72d97eccc3723799565 /t/op/reg_fold.t
parent2c2969659ae1c534e7f3fac9e7a7d186defd9943 (diff)
downloadperl-a4499558ecf2e75d73756479898bf8c8dbe8a6f6.tar.gz
move regex related tests out of t/op/ into t/re/
Diffstat (limited to 't/op/reg_fold.t')
-rw-r--r--t/op/reg_fold.t42
1 files changed, 0 insertions, 42 deletions
diff --git a/t/op/reg_fold.t b/t/op/reg_fold.t
deleted file mode 100644
index 25144521a5..0000000000
--- a/t/op/reg_fold.t
+++ /dev/null
@@ -1,42 +0,0 @@
-#!perl
-
-BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib';
- require './test.pl';
-}
-
-use strict;
-use warnings;
-my $count=1;
-my @tests;
-
-my $file="../lib/unicore/CaseFolding.txt";
-open my $fh,"<",$file or die "Failed to read '$file': $!";
-while (<$fh>) {
- chomp;
- my ($line,$comment)= split/\s+#\s+/, $_;
- my ($cp,$type,@fc)=split/[\s;]+/,$line||'';
- next unless $type and ($type eq 'F' or $type eq 'C');
- $_="\\x{$_}" for @fc;
- my $cpv=hex("0x$cp");
- my $chr="chr(0x$cp)";
- my @str;
- push @str,$chr if $cpv<128 or $cpv>256;
- if ($cpv<256) {
- push @str,"do{my \$c=$chr; utf8::upgrade(\$c); \$c}"
- }
-
- foreach my $str ( @str ) {
- my $expr="$str=~/@fc/ix";
- my $t=($cpv > 256 || $str=~/^do/) ? "unicode" : "latin";
- push @tests,
- qq[ok($expr,'$chr=~/@fc/ix - $comment ($t string)')];
- $tests[-1]="TODO: { local \$::TODO='[13:41] <BinGOs> cue *It is all Greek to me* joke.';\n$tests[-1] }"
- if $cp eq '0390' or $cp eq '03B0';
- $count++;
- }
-}
-eval join ";\n","plan tests=>".($count-1),@tests,"1"
- or die $@;
-__DATA__