diff options
Diffstat (limited to 'test/objspace/test_objspace.rb')
-rw-r--r-- | test/objspace/test_objspace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb index 833b372105..336b30f75a 100644 --- a/test/objspace/test_objspace.rb +++ b/test/objspace/test_objspace.rb @@ -106,7 +106,7 @@ class TestObjSpace < Test::Unit::TestCase end def test_memsize_of_iseq - iseqw = RubyVM::InstructionSequence.compile('def a; a = :b; end') + iseqw = RubyVM::InstructionSequence.compile('def a; a = :b; a; end') base_obj_size = ObjectSpace.memsize_of(Object.new) assert_operator(ObjectSpace.memsize_of(iseqw), :>, base_obj_size) end |