ruby-changes:5034
From: akr <ko1@a...>
Date: Thu, 22 May 2008 17:13:26 +0900 (JST)
Subject: [ruby-changes:5034] akr - Ruby:r16527 (trunk): add a test for Array#compact!.
akr 2008-05-22 17:13:19 +0900 (Thu, 22 May 2008) New Revision: 16527 Modified files: trunk/bootstraptest/test_knownbug.rb Log: add a test for Array#compact!. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=16527&r2=16526&diff_format=u Index: bootstraptest/test_knownbug.rb =================================================================== --- bootstraptest/test_knownbug.rb (revision 16526) +++ bootstraptest/test_knownbug.rb (revision 16527) @@ -94,3 +94,9 @@ assert_normal_exit %q{ eval("", method(:proc).call {}.binding) } + +assert_normal_exit %q{ + a = [] + 100.times {|i| a << i << nil << nil } + p a.compact! +} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/