mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
[PRISM] Do not shell out in prism tests
This commit is contained in:
parent
ae0441358b
commit
d3ba14a31d
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue