aboutsummaryrefslogtreecommitdiffstats
path: root/test/prism/location_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/location_test.rb
parent8ab56869a64fdccc094f4a83c6367fb23b72d38b (diff)
downloadruby-4f73a7c2f7ff16aa78cf0dec2d4c7f90a2c41c9b.tar.gz
Sync to prism rename commits
Diffstat (limited to 'test/prism/location_test.rb')
-rw-r--r--test/prism/location_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/prism/location_test.rb b/test/prism/location_test.rb
index a8e9b345a1..b5c108e399 100644
--- a/test/prism/location_test.rb
+++ b/test/prism/location_test.rb
@@ -2,7 +2,7 @@
require_relative "test_helper"
-module YARP
+module Prism
class LocationTest < TestCase
def test_AliasGlobalVariableNode
assert_location(AliasGlobalVariableNode, "alias $foo $bar")
@@ -839,7 +839,7 @@ module YARP
end
def test_all_tested
- expected = YARP.constants.grep(/.Node$/).sort - %i[MissingNode ProgramNode]
+ expected = Prism.constants.grep(/.Node$/).sort - %i[MissingNode ProgramNode]
actual = LocationTest.instance_methods(false).grep(/.Node$/).map { |name| name[5..].to_sym }.sort
assert_equal expected, actual
end
@@ -847,7 +847,7 @@ module YARP
private
def assert_location(kind, source, expected = 0...source.length)
- result = YARP.parse(source)
+ result = Prism.parse(source)
assert_equal [], result.comments
assert_equal [], result.errors