зеркало из https://github.com/github/ruby.git
add test for [ruby-dev:31911].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f2d609e0f6
Коммит
11f6502652
|
@ -32,3 +32,17 @@ assert_equal 'ok', %q{
|
|||
assert_normal_exit %q{
|
||||
Marshal.load(Marshal.dump({"k"=>"v"}), lambda {|v| })
|
||||
}
|
||||
|
||||
assert_normal_exit %q{
|
||||
eval("", TOPLEVEL_BINDING)
|
||||
minobj = ObjectSpace.to_enum(:each_object).min {|a,b| a.object_id <=> b.object_id }
|
||||
maxobj = ObjectSpace.to_enum(:each_object).max {|a,b| a.object_id <=> b.object_id }
|
||||
minobj.object_id.upto(maxobj.object_id) {|id|
|
||||
begin
|
||||
o = ObjectSpace._id2ref(id)
|
||||
rescue RangeError
|
||||
next
|
||||
end
|
||||
o.inspect
|
||||
}
|
||||
}, '[ruby-dev:31911]'
|
||||
|
|
Загрузка…
Ссылка в новой задаче