use Encode;
use File::Basename;
use File::Spec;
-use File::Compare;
+use File::Compare qw(compare_text);
require_ok "Encode::JP";
my ($src, $uni, $dst, $txt, $euc, $utf, $ref, $rnd);
binmode($dst);
print $dst $uni;
close($dst);
- is(compare($utf, $ref), 0, "$utf eq $ref");
+ is(compare_text($utf, $ref), 0, "$utf eq $ref");
open $src, "<:utf8", $ref or die "$ref : $!";
$uni = join('', <$src>);
binmode($dst);
print $dst $txt;
close($dst);
- is(compare($euc, $rnd), 0 => "$rnd eq $euc");
+ is(compare_text($euc, $rnd), 0 => "$rnd eq $euc");
}
END {