mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
f2d609e0f6
commit
11f6502652
1 changed files with 14 additions and 0 deletions
|
|
@ -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]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue