summaryrefslogtreecommitdiff
path: root/test/zlib
AgeCommit message (Collapse)Author
2011-03-28merges r30772,r30773 and r30776 from trunk into ruby_1_9_2.yugui
-- * ext/zlib/zlib.c (gzfile_reader_get_unused): use rb_str_new_shared because gz->z.input is hidden string. [ruby-core:35057] -- e ext/zlib/zlib.c (gzfile_reader_get_unused): use rb_str_resurrect -- * ext/zlib/zlib.c (gzfile_reader_get_unused): no need to dup before rb_str_resurrect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19merge from trunk (r27877, r27879, r27880, r27883, r27884)usa
* test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine): skip if they are not implemented. * test/socket/test_addrinfo.rb: ipaddr.rb defines Socket::AF_INET6 as an Object if the constant is not available. * test/logger/test_logger.rb: close logger (or logdevice) if it's related to a file because some platforms such as Windows cannot remove opened files. * test/openssl/test_ssl.rb (server_loop): treat Errno::ENOTSOCK just like as Errno::EBADF and Errno::EINVAL. * test/openssl/test_ssl.rb (test_client_auth): Errno::ECONNRESET is raised on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-14avoid method redefinition.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-19* ext/zlib/zlib.c: added Zlib.crc32_combine and Zlib.adler32_combinetenderlove
* test/zlib/test_zlib.rb: corresponding tests [ruby-core:27551] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-29* ext/zlib/zlib.c (gzfile_read_all): use gzfile_newstr;naruse
set and convert its encoding. [ruby-dev:38304] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-22* ext/zlib/zlib.c (Zlib::GzipFile#path): New method.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-03* test/zlib/test_zlib.rb(test_readchar): compare in same type.takano32
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-21* ext/stringio/stringio.c (strio_write): should convert writingmatz
string to the encoding of the buffer. * hash.c (rb_any_hash): typo fixed. * ext/zlib/zlib.c (rb_gzwriter_write): oops, IO string conversion need to be done by to_s. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-21* ext/zlib/zlib.c (rb_gzwriter_write): conversion should be donematz
using to_str, not to_s. * ext/zlib/zlib.c (rb_gzwriter_write): need proper conversion according to gz encoding. * ext/zlib/zlib.c (rb_gzreader_ungetc): convert string encoding before unget. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-21* ext/zlib/zlib.c: remove obsolete prototype macros.matz
* ext/zlib/zlib.c (struct gzfile): add encoding field to gzfile structure. * ext/zlib/zlib.c (rb_gzreader_getc): now works on characters. * ext/zlib/zlib.c (rb_gzreader_getbyte): new method to retrieve single byte. * ext/zlib/zlib.c (rb_gzreader_readbyte): ditto. * ext/zlib/zlib.c (rb_gzreader_each_byte): renamed from each_char * ext/zlib/zlib.c (rb_gzreader_ungetc): allow unget strings. * ext/zlib/zlib.c (rb_gzreader_ungetbyte): renamed from ungetc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-23* test/zlib/test_zlib.rb (TestZlibDeflate#test_params): suppress a finalizer ↵kazu
warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-11* test/zlib/test_zlib.rb: add a test for Zlib::Deflate#params.mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08* test/zlib/test_zlib.rb: add tests to achieve over 90% test coveragemame
of zlib. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-18use ML ref. for assertion message.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-07don't modify $/akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-07test_ungetc_paragraph: restore $/.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-07add test for [ruby-dev:24060], [ruby-dev:24065], [ruby-dev:24103],akr
[ruby-dev:24190], [ruby-dev:24191], [ruby-dev:24194], [ruby-dev:24197], [ruby-dev:24202], [ruby-dev:24213], [ruby-dev:24223] and [ruby-dev:24228]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-06* ext/zlib/zlib.c: Zlib::GzipReader#read(0) returns "" instead of nil.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-07add test for [ruby-dev:23344].akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-06check zlib existence.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-05update test_new_nil.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-05* test/zlib/test_zlib.rb: new file.akr
(TestZlibGzipWriter#test_new_nil): test for [ruby-dev:23228]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e