diff options
Diffstat (limited to 'test/objspace')
-rw-r--r-- | test/objspace/test_objspace.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb index 6ad3be2945..3870414d42 100644 --- a/test/objspace/test_objspace.rb +++ b/test/objspace/test_objspace.rb @@ -46,9 +46,9 @@ class TestObjSpace < Test::Unit::TestCase def test_memsize_of_all assert_kind_of(Integer, a = ObjectSpace.memsize_of_all) assert_kind_of(Integer, b = ObjectSpace.memsize_of_all(String)) - assert(a > b) - assert(a > 0) - assert(b > 0) + assert_operator(a, :>, b) + assert_operator(a, :>, 0) + assert_operator(b, :>, 0) assert_raise(TypeError) {ObjectSpace.memsize_of_all('error')} end @@ -69,7 +69,7 @@ class TestObjSpace < Test::Unit::TestCase assert_not_empty(arg) bug8014 = '[ruby-core:53130] [Bug #8014]' assert_empty(arg.select {|k, v| !(Symbol === k && Integer === v)}, bug8014) - end + end if false def test_count_tdata_objects res = ObjectSpace.count_tdata_objects |