summaryrefslogtreecommitdiff
path: root/cpan/IO-Compress/t/compress
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-11-06 22:56:39 +0000
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-11-06 23:49:04 +0000
commitad4795e78e923065898354b946437030aaeca163 (patch)
tree7ba5c1b856e45166575626fbef0c4a23026600c0 /cpan/IO-Compress/t/compress
parent00d0325cf674c5cfc5ea2c9eb9917de7a8265763 (diff)
downloadperl-ad4795e78e923065898354b946437030aaeca163.tar.gz
Update IO-Compress to CPAN version 2.040
[DELTA] 2.040 28 October 2011 * t/105oneshot-zip-only.t - CanonicalName test failure on Windows [RT# 68926] * IO::Compress::Zip - ExtAttr now populates MSDOS attributes 2.039 28 October 2011 * IO::Compress::Zip - Added CanonicalName option. Note this option is set to true by default. - Added FilterName option * IO::Unompress::Base - Fixed issue where setting $\ would corrupt the uncompressed data. Thanks to Steffen Goeldner for reporting the issue. * t/050interop-*.t - Handle case when external command contains a whitespace RT #71335
Diffstat (limited to 'cpan/IO-Compress/t/compress')
-rw-r--r--cpan/IO-Compress/t/compress/oneshot.pl22
1 files changed, 20 insertions, 2 deletions
diff --git a/cpan/IO-Compress/t/compress/oneshot.pl b/cpan/IO-Compress/t/compress/oneshot.pl
index 102f221da5..14309ab8c5 100644
--- a/cpan/IO-Compress/t/compress/oneshot.pl
+++ b/cpan/IO-Compress/t/compress/oneshot.pl
@@ -16,7 +16,7 @@ BEGIN {
$extra = 1
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
- plan tests => 986 + $extra ;
+ plan tests => 989 + $extra ;
use_ok('IO::Uncompress::AnyUncompress', qw(anyuncompress $AnyUncompressError)) ;
@@ -1578,8 +1578,26 @@ sub run
}
}
-}
+ {
+ # check setting $/
+
+ my $CompFunc = getTopFuncRef($CompressClass);
+ my $UncompFunc = getTopFuncRef($UncompressClass);
+ my $lex = new LexFile my $file ;
+
+ local $\ = "\n" ;
+ my $input = "hello world";
+ my $compressed ;
+ my $output;
+ ok &$CompFunc(\$input => \$compressed), ' Compressed ok' ;
+ ok &$UncompFunc(\$compressed => $file), ' UnCompressed ok' ;
+ my $content = readFile($file) ;
+ is $content, $input, "round trip ok" ;
+
+ }
+
+}
# TODO add more error cases
1;