From da5e82f5a353745c17d726a86379c17797e7be73 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 22 May 2008 08:13:19 +0000 Subject: add a test for Array#compact!. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 5fb6136508..69cbd8f868 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -94,3 +94,9 @@ assert_equal 'ok', %q{ assert_normal_exit %q{ eval("", method(:proc).call {}.binding) } + +assert_normal_exit %q{ + a = [] + 100.times {|i| a << i << nil << nil } + p a.compact! +} -- cgit v1.2.3