diff options
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 +} |