summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2021-08-04 13:23:34 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:38 -0400
commitd2e8b99b5bc485b864d25c4293002214b0c64ced (patch)
treea619460f17c34d476443851cb234c9fffdc98519 /test
parent5b4305f71c90d498c91d7b5038758e3557938802 (diff)
downloadruby-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.rb4
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)