diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-01 20:39:31 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-29 08:47:05 -0700 |
commit | 330c9e98506d421778c8f2581a23ba44e4663e06 (patch) | |
tree | 0279d5b6765b9ea9c6718f5b44f7c65dc19d0c31 /bootstraptest | |
parent | 16307adf8f0cde3a9383e6c7e39fc718ebc89b42 (diff) |
Port anytostring, intern, and toregexp (https://github.com/Shopify/ruby/pull/348)
* Port anytostring, intern, and toregexp
* Port getspecial to the new backend (#349)
PR: https://github.com/Shopify/ruby/pull/349
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_yjit.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 2f8c6a8f18..b8374746f7 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -3087,3 +3087,19 @@ assert_equal 'foo', %q{ foo = Foo.new foo.foo } + +# anytostring, intern +assert_equal 'true', %q{ + def foo() + :"#{true}" + end + foo() +} + +# toregexp +assert_equal '/true/', %q{ + def foo() + /#{true}/ + end + foo().inspect +} |