From b2a4f270e8dde1cb0e2ea7e7afcf7367207ed7dd Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 7 Apr 2004 05:06:34 +0000 Subject: [PATCH] add test for [ruby-dev:23344]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/zlib/test_zlib.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 4832bcf540..493bdab118 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -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