diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-09-27 12:24:48 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-09-27 13:57:38 -0400 |
commit | 4f73a7c2f7ff16aa78cf0dec2d4c7f90a2c41c9b (patch) | |
tree | 3b6f0cedc858d46d30a28c6d03439d653884a915 /test/prism/errors_test.rb | |
parent | 8ab56869a64fdccc094f4a83c6367fb23b72d38b (diff) | |
download | ruby-4f73a7c2f7ff16aa78cf0dec2d4c7f90a2c41c9b.tar.gz |
Sync to prism rename commits
Diffstat (limited to 'test/prism/errors_test.rb')
-rw-r--r-- | test/prism/errors_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb index 2b3c8f5c89..2a8e19447c 100644 --- a/test/prism/errors_test.rb +++ b/test/prism/errors_test.rb @@ -2,7 +2,7 @@ require_relative "test_helper" -module YARP +module Prism class ErrorsTest < TestCase include DSL @@ -1175,7 +1175,7 @@ module YARP end def test_invalid_message_name - result = YARP.parse("+.@foo,+=foo") + result = Prism.parse("+.@foo,+=foo") assert_equal "", result.value.statements.body.first.write_name end @@ -1354,7 +1354,7 @@ module YARP # Ripper behaves differently on JRuby/TruffleRuby, so only check this on CRuby assert_nil Ripper.sexp_raw(source) if compare_ripper - result = YARP.parse(source) + result = Prism.parse(source) node = result.value.statements.body.last assert_equal_nodes(expected, node, compare_location: false) @@ -1363,12 +1363,12 @@ module YARP def assert_error_messages(source, errors, compare_ripper: RUBY_ENGINE == "ruby") assert_nil Ripper.sexp_raw(source) if compare_ripper - result = YARP.parse(source) + result = Prism.parse(source) assert_equal(errors, result.errors.map(&:message)) end def expression(source) - YARP.parse(source).value.statements.body.last + Prism.parse(source).value.statements.body.last end end end |