mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add test for [ruby-dev:23344].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
23376aae53
commit
b2a4f270e8
1 changed files with 6 additions and 1 deletions
|
@ -8,8 +8,13 @@ end
|
|||
|
||||
if defined? Zlib
|
||||
class TestZlibGzipWriter < Test::Unit::TestCase
|
||||
def test_new_nil # [ruby-dev:23228]
|
||||
def test_invalid_new
|
||||
# [ruby-dev:23228]
|
||||
assert_raises(NoMethodError) { Zlib::GzipWriter.new(nil).close }
|
||||
# [ruby-dev:23344]
|
||||
assert_raises(NoMethodError) { Zlib::GzipWriter.new(true).close }
|
||||
assert_raises(NoMethodError) { Zlib::GzipWriter.new(0).close }
|
||||
assert_raises(NoMethodError) { Zlib::GzipWriter.new(:hoge).close }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue