mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
e5af80c697
commit
2f8c9ce629
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Apr 5 22:25:32 2004 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* 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 <aamine@loveruby.net>
|
||||
|
||||
* parse.y (assoc_list): {a: 1, b: 2} should be allowed.
|
||||
|
|
16
test/zlib/test_zlib.rb
Normal file
16
test/zlib/test_zlib.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue