ruby-changes:12232
From: nobu <ko1@a...>
Date: Wed, 1 Jul 2009 11:32:36 +0900 (JST)
Subject: [ruby-changes:12232] Ruby:r23919 (trunk): * test/ruby/test_marshal.rb (TestMarshal#test_limit): test for
nobu 2009-07-01 11:32:24 +0900 (Wed, 01 Jul 2009) New Revision: 23919 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23919 Log: * test/ruby/test_marshal.rb (TestMarshal#test_limit): test for [ruby-core:24100]. Modified files: trunk/test/ruby/test_marshal.rb Index: test/ruby/test_marshal.rb =================================================================== --- test/ruby/test_marshal.rb (revision 23918) +++ test/ruby/test_marshal.rb (revision 23919) @@ -116,6 +116,7 @@ def test_limit assert_equal([[[]]], Marshal.load(Marshal.dump([[[]]], 3))) assert_raise(ArgumentError) { Marshal.dump([[[]]], 2) } + assert_nothing_raised(ArgumentError, '[ruby-core:24100]') { Marshal.dump("\u3042", 1) } end def test_userdef_invalid -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/