1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/zlib/test_zlib.rb (TestZlibGzipWriter#test_writer_wrap): set

binmode explicitly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2012-01-09 10:42:18 +00:00
parent 2cf2416ea0
commit 98ddbafb26
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Jan 9 19:40:20 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* test/zlib/test_zlib.rb (TestZlibGzipWriter#test_writer_wrap): set
binmode explicitly.
Mon Jan 9 14:42:41 2012 Narihiro Nakamura <authornari@gmail.com>
* gc.c: free_slots is changed Singly linked list. clear

View file

@ -760,6 +760,7 @@ if defined? Zlib
def test_writer_wrap
t = Tempfile.new("test_zlib_gzip_writer_wrap")
t.binmode
Zlib::GzipWriter.wrap(t) {|gz| gz.print("foo") }
t.close
assert_equal("foo", Zlib::GzipReader.open(t.path) {|gz| gz.read })