mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test for [ruby-dev:31985].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81b55c0ff3
commit
44ee78db94
1 changed files with 9 additions and 0 deletions
|
@ -33,3 +33,12 @@ assert_normal_exit %q{
|
||||||
}
|
}
|
||||||
}, '[ruby-dev:31982]'
|
}, '[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]'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue