summaryrefslogtreecommitdiff
path: root/test/zlib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-03 15:15:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-03 15:15:04 +0000
commitb6371b55dece4d6636a46c366d13c220f1c14a41 (patch)
treecf1154e45252cc50d8a4f31819cb3afd67b9b260 /test/zlib
parentb3c80c05918c91bf1123258a03cd1e13c4f0dff3 (diff)
* 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/trunk@30776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/zlib')
-rw-r--r--test/zlib/test_zlib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb
index 8235223..d118f7e 100644
--- a/test/zlib/test_zlib.rb
+++ b/test/zlib/test_zlib.rb
@@ -86,7 +86,7 @@ if defined? Zlib
def test_adler
z = Zlib::Deflate.new
z << "foo"
- s = z.finish
+ z.finish
assert_equal(0x02820145, z.adler)
end
@@ -95,7 +95,7 @@ if defined? Zlib
assert_equal(false, z.finished?)
z << "foo"
assert_equal(false, z.finished?)
- s = z.finish
+ z.finish
assert_equal(true, z.finished?)
z.close
assert_raise(Zlib::Error) { z.finished? }