diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_yjit.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb index 95e768ee0c..8160042cb9 100644 --- a/test/ruby/test_yjit.rb +++ b/test/ruby/test_yjit.rb @@ -59,6 +59,10 @@ class TestYJIT < Test::Unit::TestCase assert_compiles('$foo = 123; $foo', insns: %i[setglobal], result: 123) end + def test_compile_putspecialobject + assert_compiles('-> {}', insns: %i[putspecialobject]) + end + def test_compile_tostring assert_no_exits('"i am a string #{true}"') end @@ -201,7 +205,7 @@ class TestYJIT < Test::Unit::TestCase iseq = RubyVM::InstructionSequence.of(_test_proc) IO.open(3).write Marshal.dump({ - result: result, + result: #{result == ANY ? "nil" : "result"}, stats: stats, iseqs: collect_iseqs(iseq), disasm: iseq.disasm |