summaryrefslogtreecommitdiff
path: root/test/zlib
diff options
context:
space:
mode:
Diffstat (limited to 'test/zlib')
-rw-r--r--test/zlib/test_zlib.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb
index 2d539dda1a..c464bb214f 100644
--- a/test/zlib/test_zlib.rb
+++ b/test/zlib/test_zlib.rb
@@ -1057,6 +1057,14 @@ if defined? Zlib
}
end
+ def test_puts
+ Tempfile.create("test_zlib_gzip_writer_puts") {|t|
+ t.close
+ Zlib::GzipWriter.open(t.path) {|gz| gz.puts("foo") }
+ assert_equal("foo\n", Zlib::GzipReader.open(t.path) {|gz| gz.read })
+ }
+ end
+
def test_writer_wrap
Tempfile.create("test_zlib_gzip_writer_wrap") {|t|
t.binmode