aboutsummaryrefslogtreecommitdiffstats
path: root/test/prism/desugar_compiler_test.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-09-27 12:24:48 -0400
committerKevin Newton <kddnewton@gmail.com>2023-09-27 13:57:38 -0400
commit4f73a7c2f7ff16aa78cf0dec2d4c7f90a2c41c9b (patch)
tree3b6f0cedc858d46d30a28c6d03439d653884a915 /test/prism/desugar_compiler_test.rb
parent8ab56869a64fdccc094f4a83c6367fb23b72d38b (diff)
downloadruby-4f73a7c2f7ff16aa78cf0dec2d4c7f90a2c41c9b.tar.gz
Sync to prism rename commits
Diffstat (limited to 'test/prism/desugar_compiler_test.rb')
-rw-r--r--test/prism/desugar_compiler_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/prism/desugar_compiler_test.rb b/test/prism/desugar_compiler_test.rb
index 8d2b207fed..c72e141c6b 100644
--- a/test/prism/desugar_compiler_test.rb
+++ b/test/prism/desugar_compiler_test.rb
@@ -2,7 +2,7 @@
require_relative "test_helper"
-module YARP
+module Prism
class DesugarCompilerTest < TestCase
def test_and_write
assert_desugars("(AndNode (ClassVariableReadNode) (ClassVariableWriteNode (CallNode)))", "@@foo &&= bar")
@@ -72,14 +72,14 @@ module YARP
end
def assert_desugars(expected, source)
- ast = YARP.parse(source).value.accept(DesugarCompiler.new)
+ ast = Prism.parse(source).value.accept(DesugarCompiler.new)
assert_equal expected, ast_inspect(ast.statements.body.last)
ast.accept(EnsureEveryNodeOnceInAST.new)
end
def assert_not_desugared(source, reason)
- ast = YARP.parse(source).value
+ ast = Prism.parse(source).value
assert_equal_nodes(ast, ast.accept(DesugarCompiler.new))
end
end