diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2002-04-21 20:50:21 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2002-04-21 20:50:21 +0000 |
commit | 2a7565946fd458b78319f17b54a7f7cf3cbad8db (patch) | |
tree | 83bae25922ccf73bd999bc0154c7a3f586524ac2 /ext | |
parent | eb160463266f58ba83ae9bb9ae8bbdc8f0c3027b (diff) | |
download | perl-2a7565946fd458b78319f17b54a7f7cf3cbad8db.tar.gz |
use compare_text() rather than compare() to avoid bogus
failures when the test files happen to be CRLF terminated
p4raw-id: //depot/perl@16049
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Encode/t/JP.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/Encode/t/JP.t b/ext/Encode/t/JP.t index 4192a7cbdf..43517f3db2 100644 --- a/ext/Encode/t/JP.t +++ b/ext/Encode/t/JP.t @@ -20,7 +20,7 @@ use Test::More tests => 37; 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); @@ -50,7 +50,7 @@ for my $charset (qw(jisx0201 jisx0212 jisx0208)){ 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>); @@ -81,7 +81,7 @@ for my $charset (qw(jisx0201 jisx0212 jisx0208)){ 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 { |