diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-11-06 15:12:28 -0800 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-11-06 15:12:28 -0800 |
commit | e58814d150b0652f5e11958b36b85d977fdd0426 (patch) | |
tree | 1733515f939591caf954d8a80e3010cdd0981491 /bootstraptest | |
parent | bd2b314a05ae9192b3143e1e678a37c370d8a9ce (diff) |
Revert "Use a monotonically increasing number for object_id"
This reverts commit bd2b314a05ae9192b3143e1e678a37c370d8a9ce.
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_objectspace.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/bootstraptest/test_objectspace.rb b/bootstraptest/test_objectspace.rb index 63a8d99322..24a1a0ce2c 100644 --- a/bootstraptest/test_objectspace.rb +++ b/bootstraptest/test_objectspace.rb @@ -44,12 +44,3 @@ assert_normal_exit %q{ Thread.new {} end }, '[ruby-core:37858]' - -assert_equal 'ok', %q{ - objects_and_ids = 1000.times.map { o = Object.new; [o, o.object_id] } - objects_and_ids.each { |expected, id| - actual = ObjectSpace._id2ref(id) - raise "expected #{expected.inspect}, got #{actual.inspect}" unless actual.equal?(expected) - } - 'ok' -} |