summaryrefslogtreecommitdiff
path: root/t/uni
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2016-07-11 08:39:46 -0700
committerFather Chrysostomos <sprout@cpan.org>2016-07-13 01:12:48 -0700
commit025072412ef40e8273e89112833a90d7ff04a31b (patch)
tree5656f8a1edcd52da4fa9ff5e2d9334fef96817af /t/uni
parent98bf0eee484b2b458b845fd27e3f530373d1b930 (diff)
downloadperl-025072412ef40e8273e89112833a90d7ff04a31b.tar.gz
Remove t/uni/tr_?jis.t
I disabled them a few commits ago, thinking that maybe reworking them to test y窶冱 utf8 support might be a good idea; but they duplicate tests already in t/uni/tr_utf8.t, so they are no longer necessary.
Diffstat (limited to 't/uni')
-rw-r--r--t/uni/tr_7jis.t43
-rw-r--r--t/uni/tr_sjis.t42
2 files changed, 0 insertions, 85 deletions
diff --git a/t/uni/tr_7jis.t b/t/uni/tr_7jis.t
deleted file mode 100644
index fc527b8e41..0000000000
--- a/t/uni/tr_7jis.t
+++ /dev/null
@@ -1,43 +0,0 @@
-#! perl -w
-#
-# This script is written intentionally in ISO-2022-JP
-# requires Encode 1.83 or better to work
-# -- dankogai
-
-BEGIN {
- chdir 't' if -d 't';
- require './test.pl';
- skip_all("encoding.pm is no longer supported by the perl core");
-}
-
-use strict;
-plan(tests => 6);
-no warnings 'deprecated';
-use encoding 'iso-2022-jp';
-
-my @hiragana = map {chr} ord("$B$!(B")..ord("$B$s(B");
-my @katakana = map {chr} ord("$B%!(B")..ord("$B%s(B");
-my $hiragana = join('' => @hiragana);
-my $katakana = join('' => @katakana);
-my %h2k; @h2k{@hiragana} = @katakana;
-my %k2h; @k2h{@katakana} = @hiragana;
-
-# print @hiragana, "\n";
-
-my $str;
-
-$str = $hiragana; $str =~ tr/$B$!(B-$B$s(B/$B%!(B-$B%s(B/;
-is($str, $katakana, "tr// # hiragana -> katakana");
-$str = $katakana; $str =~ tr/$B%!(B-$B%s(B/$B$!(B-$B$s(B/;
-is($str, $hiragana, "tr// # hiragana -> katakana");
-
-$str = $hiragana; eval qq(\$str =~ tr/$B$!(B-$B$s(B/$B%!(B-$B%s(B/);
-is($str, $katakana, "eval qq(tr//) # hiragana -> katakana");
-$str = $katakana; eval qq(\$str =~ tr/$B%!(B-$B%s(B/$B$!(B-$B$s(B/);
-is($str, $hiragana, "eval qq(tr//) # hiragana -> katakana");
-
-$str = $hiragana; $str =~ s/([$B$!(B-$B$s(B])/$h2k{$1}/go;
-is($str, $katakana, "s/// # hiragana -> katakana");
-$str = $katakana; $str =~ s/([$B%!(B-$B%s(B])/$k2h{$1}/go;
-is($str, $hiragana, "s/// # hiragana -> katakana");
-__END__
diff --git a/t/uni/tr_sjis.t b/t/uni/tr_sjis.t
deleted file mode 100644
index ff78e7aece..0000000000
--- a/t/uni/tr_sjis.t
+++ /dev/null
@@ -1,42 +0,0 @@
-#!perl -w
-#
-# This script is written intentionally in Shift JIS
-# -- dankogai
-
-BEGIN {
- chdir 't' if -d 't';
- require './test.pl';
- skip_all("encoding.pm is no longer supported by the perl core");
-}
-
-use strict;
-plan(tests => 6);
-no warnings 'deprecated';
-use encoding 'shiftjis';
-
-my @hiragana = map {chr} ord("ぁ")..ord("ん");
-my @katakana = map {chr} ord("ァ")..ord("ン");
-my $hiragana = join('' => @hiragana);
-my $katakana = join('' => @katakana);
-my %h2k; @h2k{@hiragana} = @katakana;
-my %k2h; @k2h{@katakana} = @hiragana;
-
-# print @hiragana, "\n";
-
-my $str;
-
-$str = $hiragana; $str =~ tr/ぁ-ん/ァ-ン/;
-is($str, $katakana, "tr// # hiragana -> katakana");
-$str = $katakana; $str =~ tr/ァ-ン/ぁ-ん/;
-is($str, $hiragana, "tr// # hiragana -> katakana");
-
-$str = $hiragana; eval qq(\$str =~ tr/ぁ-ん/ァ-ン/);
-is($str, $katakana, "eval qq(tr//) # hiragana -> katakana");
-$str = $katakana; eval qq(\$str =~ tr/ァ-ン/ぁ-ん/);
-is($str, $hiragana, "eval qq(tr//) # hiragana -> katakana");
-
-$str = $hiragana; $str =~ s/([ぁ-ん])/$h2k{$1}/go;
-is($str, $katakana, "s/// # hiragana -> katakana");
-$str = $katakana; $str =~ s/([ァ-ン])/$k2h{$1}/go;
-is($str, $hiragana, "s/// # hiragana -> katakana");
-__END__