From 44ee78db94567e6550fcc83bea5d4cac325cf3e0 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 9 Oct 2007 08:15:37 +0000 Subject: add a test for [ruby-dev:31985]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bootstraptest/test_knownbug.rb') diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index d0a5ba81a7..8ae5dc741c 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -33,3 +33,12 @@ assert_normal_exit %q{ } }, '[ruby-dev:31982]' +assert_normal_exit %q{ + ary = (1..100).to_a + ary.permutation(2) {|x| + if x == [1,2] + ObjectSpace.each_object(Array) {|o| o.clear if o == ary && o.object_id != ary.object_id } + end + } +}, '[ruby-dev:31985]' + -- cgit v1.2.3