diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_iseq.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 6e81c63915..4c811611ba 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -395,4 +395,13 @@ class TestISeq < Test::Unit::TestCase end } end + + def test_to_binary_with_objects + code = "[]"+100.times.map{|i|"<</#{i}/"}.join + bin = assert_nothing_raised { + RubyVM::InstructionSequence.compile(code).to_binary + } + # load_from_binary doesn't work now + assert_instance_of(String, bin) + end end |