diff options
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r-- | test/ruby/test_gc.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 4ae34dc3b8..40c5b1471f 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -69,14 +69,14 @@ class TestGc < Test::Unit::TestCase GC.start GC.stat(stat) ObjectSpace.count_objects(count) - assert_equal(count[:TOTAL]-count[:FREE], stat[:heap_live_num]) - assert_equal(count[:FREE], stat[:heap_free_num]) + assert_equal(count[:TOTAL]-count[:FREE], stat[:heap_live_slot]) + assert_equal(count[:FREE], stat[:heap_free_slot]) # measure again without GC.start 1000.times{ "a" + "b" } GC.stat(stat) ObjectSpace.count_objects(count) - assert_equal(count[:FREE], stat[:heap_free_num]) + assert_equal(count[:FREE], stat[:heap_free_slot]) end def test_singleton_method |