use bytes;
use Test::More ;
-use ZlibTestUtils;
+use CompTestUtils;
our ($BadPerl, $UncompressClass);
$BadPerl = ($] >= 5.006 and $] <= 5.008) ;
if ($BadPerl) {
- $tests = 242 ;
+ $tests = 241 ;
}
else {
- $tests = 250 ;
+ $tests = 249 ;
}
plan tests => $tests + $extra ;
- use_ok('Compress::Zlib', 2) ;
-
}
my $foo = "1234567890";
ok syswrite($io, $foo, length($foo)) == length($foo) ;
- if ( $[ < 5.6 )
+ if ( $] < 5.6 )
{ is $io->syswrite($foo, length $foo), length $foo }
else
{ is $io->syswrite($foo), length $foo }
{
my $io = new $UncompressClass $name ;
- ok ! $io->eof;
- is $io->tell(), 0 ;
+ ok ! $io->eof, " Not EOF";
+ is $io->tell(), 0, " Tell is 0" ;
my @lines = <$io>;
- is @lines, 6
+ is @lines, 6, " Line is 6"
or print "# Got " . scalar(@lines) . " lines, expected 6\n" ;
is $lines[1], "of a paragraph\n" ;
is join('', @lines), $str ;