summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Hawthorn <[email protected]>2021-06-19 14:03:06 -0700
committerAlan Wu <[email protected]>2021-10-20 18:19:39 -0400
commite18b0b6ebab74e16774bc6121ffba785564b9fd6 (patch)
tree0b6970282c4fff416e9ab3a7a82a3094801a6278 /test
parent3edf29668ee2f8015d560508accbb35c85568823 (diff)
Implement putspecialobject
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_yjit.rb6
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