summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-09 08:15:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-09 08:15:37 +0000
commitd3a08541562fc5a228e99315ca3868405f7d618b (patch)
tree32d923263692534fe0aa2c804c35b90b2debe1eb
parent89c9f2c6421356b7699b9f5f2445b8d972f10dad (diff)
downloadruby-d3a08541562fc5a228e99315ca3868405f7d618b.tar.gz
ruby-d3a08541562fc5a228e99315ca3868405f7d618b.tar.xz
ruby-d3a08541562fc5a228e99315ca3868405f7d618b.zip
add a test for [ruby-dev:31985].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bootstraptest/test_knownbug.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index d0a5ba81a..8ae5dc741 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]'
+