From 2f8c9ce629bff3ada0b367d1e4cd4c12f5bd7198 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 5 Apr 2004 13:27:45 +0000 Subject: [PATCH] * test/zlib/test_zlib.rb: new file. (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 --- ChangeLog | 5 +++++ test/zlib/test_zlib.rb | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/zlib/test_zlib.rb diff --git a/ChangeLog b/ChangeLog index 92d82d04df..17df13b4ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 5 22:25:32 2004 Tanaka Akira + + * test/zlib/test_zlib.rb: new file. + (TestZlibGzipWriter#test_new_nil): test for [ruby-dev:23228]. + Mon Apr 5 22:16:23 2004 Minero Aoki * parse.y (assoc_list): {a: 1, b: 2} should be allowed. diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb new file mode 100644 index 0000000000..b148553be6 --- /dev/null +++ b/test/zlib/test_zlib.rb @@ -0,0 +1,16 @@ +require 'test/unit/testsuite' +require 'test/unit/testcase' + +require 'zlib' + +class TestZlibGzipWriter < Test::Unit::TestCase + def test_new_nil # [ruby-dev:23228] + old = $VERBOSE + $VERBOSE = nil + begin + assert_raises(NoMethodError) { Zlib::GzipWriter.new(nil).close } + ensure + $VERBOSE = old + end + end +end