mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00
Sync to prism rename commits
This commit is contained in:
parent
8ab56869a6
commit
4f73a7c2f7
99 changed files with 7870 additions and 7877 deletions
|
@ -2,9 +2,9 @@
|
|||
|
||||
require_relative "test_helper"
|
||||
|
||||
module YARP
|
||||
module Prism
|
||||
class CompilerTest < TestCase
|
||||
class SExpressions < YARP::Compiler
|
||||
class SExpressions < Prism::Compiler
|
||||
def visit_arguments_node(node)
|
||||
[:arguments, super]
|
||||
end
|
||||
|
@ -24,7 +24,7 @@ module YARP
|
|||
|
||||
def test_compiler
|
||||
expected = [:program, [[[:call, [[:integer], [:arguments, [[:integer]]]]]]]]
|
||||
assert_equal expected, YARP.parse("1 + 2").value.accept(SExpressions.new)
|
||||
assert_equal expected, Prism.parse("1 + 2").value.accept(SExpressions.new)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue