diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index aecb223bcc..69cc6980b0 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -720,8 +720,15 @@ module Prism end def test_InterpolatedXStringNode - assert_prism_eval('`echo #{1}`') - assert_prism_eval('`echo #{"100"}`') + assert_prism_eval(<<~RUBY) + def self.`(command) = command * 2 + `echo \#{1}` + RUBY + + assert_prism_eval(<<~RUBY) + def self.`(command) = command * 2 + `echo \#{"100"}` + RUBY end def test_MatchLastLineNode