From 79c17250961d2f2d545a6d1c3faa59df0d31ce8b Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Tue, 2 Apr 2024 11:54:50 -0400 Subject: [PATCH] [ruby/prism] Update seattlerb/ruby_parser tests https://github.com/ruby/prism/commit/cd823d5026 --- test/prism/fixtures/seattlerb/README.rdoc | 6 +++--- test/prism/fixtures/seattlerb/pct_Q_backslash_nl.txt | 2 +- test/prism/snapshots/seattlerb/pct_Q_backslash_nl.txt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/prism/fixtures/seattlerb/README.rdoc b/test/prism/fixtures/seattlerb/README.rdoc index 649e4e4c2f..1e5bfbdfe0 100644 --- a/test/prism/fixtures/seattlerb/README.rdoc +++ b/test/prism/fixtures/seattlerb/README.rdoc @@ -65,15 +65,15 @@ You can also use Ruby19Parser, Ruby18Parser, or RubyParser.for_current_ruby: To add a new version: -* New parser should be generated from lib/ruby[3]_parser.yy. -* Extend lib/ruby[3]_parser.yy with new class name. +* New parser should be generated from lib/ruby_parser[23].yy. +* Extend lib/ruby_parser[23].yy with new class name. * Add new version number to V2/V3 in Rakefile for rule creation. * Add new `ruby_parse "x.y.z"` line to Rakefile for rake compare (line ~300). * Require generated parser in lib/ruby_parser.rb. * Add new V## = ::Ruby##Parser; end to ruby_parser.rb (bottom of file). * Add empty TestRubyParserShared##Plus module and TestRubyParserV## to test/test_ruby_parser.rb. * Extend Manifest.txt with generated file names. -* Add new version number to sexp_processor's pt_testcase.rb in all_versions +* Add new version number to sexp_processor's pt_testcase.rb in all_versions. Until all of these are done, you won't have a clean test run. diff --git a/test/prism/fixtures/seattlerb/pct_Q_backslash_nl.txt b/test/prism/fixtures/seattlerb/pct_Q_backslash_nl.txt index 4420560d2b..d88e1fd21c 100644 --- a/test/prism/fixtures/seattlerb/pct_Q_backslash_nl.txt +++ b/test/prism/fixtures/seattlerb/pct_Q_backslash_nl.txt @@ -1,2 +1,2 @@ -%q{ \ +%Q{ \ } diff --git a/test/prism/snapshots/seattlerb/pct_Q_backslash_nl.txt b/test/prism/snapshots/seattlerb/pct_Q_backslash_nl.txt index 31cc0941ee..c8a990c672 100644 --- a/test/prism/snapshots/seattlerb/pct_Q_backslash_nl.txt +++ b/test/prism/snapshots/seattlerb/pct_Q_backslash_nl.txt @@ -5,7 +5,7 @@ └── body: (length: 1) └── @ StringNode (location: (1,0)-(2,1)) ├── flags: ∅ - ├── opening_loc: (1,0)-(1,3) = "%q{" + ├── opening_loc: (1,0)-(1,3) = "%Q{" ├── content_loc: (1,3)-(2,0) = " \\\n" ├── closing_loc: (2,0)-(2,1) = "}" - └── unescaped: " \\\n" + └── unescaped: " "