diff options
| author | fukachan <fukachan> | 2002-04-14 08:20:37 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-04-14 08:20:37 +0000 |
| commit | 4c3235630e0ff8936bb2e9f69113e86306da1602 (patch) | |
| tree | 762e5e70fc2ba55cf033d1b20d05b22f4ae26c5f /cpan/lib/Jcode/_test.pl | |
| parent | 955e84ae7d6c91648695f8ed98f9ae44c08da75c (diff) | |
| download | fml8-4c3235630e0ff8936bb2e9f69113e86306da1602.tar.gz fml8-4c3235630e0ff8936bb2e9f69113e86306da1602.tar.bz2 fml8-4c3235630e0ff8936bb2e9f69113e86306da1602.zip | |
Initial revision
Diffstat (limited to 'cpan/lib/Jcode/_test.pl')
| -rw-r--r-- | cpan/lib/Jcode/_test.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpan/lib/Jcode/_test.pl b/cpan/lib/Jcode/_test.pl new file mode 100644 index 00000000..7b8bb80d --- /dev/null +++ b/cpan/lib/Jcode/_test.pl @@ -0,0 +1,16 @@ + +use ExtUtils::testlib; +use Jcode::Unicode; +use Getopt::Std; +getopts("p"); + +my $file = "../t/table.euc"; +my $euc, $ucs2, $utf8; +open F, $file or die $!; +read F, $euc, -s $file; + +print "1..2\n"; +print "Ok 1\n" if $ucs2 = Jcode::Unicode::euc_ucs2($euc, $opt_p); +print "Ok 2\n" if $euc eq Jcode::Unicode::ucs2_euc($ucs2, $opt_p); +print "Ok 3\n" if $utf8 = Jcode::Unicode::ucs2_utf8($ucs2); +print "Ok 4\n" if $ucs2 eq Jcode::Unicode::utf8_ucs2($utf8); |
