diff options
author | eileencodes <eileencodes@gmail.com> | 2021-08-04 13:23:34 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:38 -0400 |
commit | d2e8b99b5bc485b864d25c4293002214b0c64ced (patch) | |
tree | a619460f17c34d476443851cb234c9fffdc98519 /test | |
parent | 5b4305f71c90d498c91d7b5038758e3557938802 (diff) | |
download | ruby-d2e8b99b5bc485b864d25c4293002214b0c64ced.tar.gz |
Implement tostring instruction for yjit
Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_yjit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb index 145305ad09..e485e5f64f 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_tostring + assert_no_exits('"i am a string #{true}"') + end + def test_getlocal_with_level assert_compiles(<<~RUBY, insns: %i[getlocal opt_plus], result: [[7]]) def foo(foo, bar) |