{
$cc = new IO::File "<$name" ;
}
+ my @opts = $unc ne $UncompressClass
+ ? (RawInflate => 1)
+ : ();
my $gz = new $unc($cc,
+ @opts,
Strict => 1,
AutoClose => 1,
Append => 1,
ok $gz->close(), " close() ok"
or diag "errno $!\n" ;
- is $gz->streamCount(), $i +1, " streamCount ok"
+ is $gz->streamCount(), $i +1, " streamCount ok " . ($i +1)
or diag "Stream count is " . $gz->streamCount();
ok $un eq join('', @buffs), " expected output" ;
{
$cc = new IO::File "<$name" ;
}
+ my @opts = $unc ne $UncompressClass
+ ? (RawInflate => 1)
+ : ();
my $gz = new $unc($cc,
+ @opts,
Strict => 1,
AutoClose => 1,
Append => 1,
my $lines = @lines;
my $un = '';
- while (<$gz>) {
+ #while (<$gz>) {
+ while ($_ = $gz->getline()) {
$un .= $_;
}
is $., $lines, " \$. is $lines";
{
my $un = '';
- 1 while $gz->read($un) > 0 ;
+ #1 while $gz->read($un) > 0 ;
+ is $., 0, " \$. is 0";
+ $gz->read($un) ;
#print "[[$un]]\n" while $gz->read($un) > 0 ;
ok ! $gz->error(), " ! error()"
or diag "Error is " . $gz->error() ;
or diag "Stream count is " . $gz->streamCount();
ok $un eq "", " expected output" ;
is $gz->tell(), 0, " tell is 0";
- is $., 0, " \$. is 0";
}
is $gz->nextStream(), 0, " nextStream ok";