diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-10-10 14:28:15 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2023-10-13 15:31:30 -0400 |
| commit | 5fc34f1cde041e72597c873d3ada8f3b039b991f (patch) | |
| tree | 6099ab662d1a5b5063e1801743979bfbee03ecda /test | |
| parent | 41ac8ddca34445076aba16504e1eeacae3cefed5 (diff) | |
[ruby/prism] Use current_string for handling %W lists
https://github.com/ruby/prism/commit/edb1674725
Diffstat (limited to 'test')
4 files changed, 4 insertions, 4 deletions
diff --git a/test/prism/snapshots/seattlerb/pctW_lineno.txt b/test/prism/snapshots/seattlerb/pctW_lineno.txt index 468150529d..20196fe2f9 100644 --- a/test/prism/snapshots/seattlerb/pctW_lineno.txt +++ b/test/prism/snapshots/seattlerb/pctW_lineno.txt @@ -28,7 +28,7 @@ │ │ ├── opening_loc: ∅ │ │ ├── content_loc: (3,0)-(4,1) = "e\\\nf" │ │ ├── closing_loc: ∅ - │ │ └── unescaped: "ef" + │ │ └── unescaped: "e\nf" │ ├── @ StringNode (location: (5,0)-(5,2)) │ │ ├── flags: ∅ │ │ ├── opening_loc: ∅ diff --git a/test/prism/snapshots/spanning_heredoc.txt b/test/prism/snapshots/spanning_heredoc.txt index 4c6598b62b..cb99a343ab 100644 --- a/test/prism/snapshots/spanning_heredoc.txt +++ b/test/prism/snapshots/spanning_heredoc.txt @@ -216,7 +216,7 @@ │ │ │ │ │ ├── opening_loc: ∅ │ │ │ │ │ ├── content_loc: (35,12)-(35,14) = "l\\" │ │ │ │ │ ├── closing_loc: ∅ - │ │ │ │ │ └── unescaped: "l\\" + │ │ │ │ │ └── unescaped: "l" │ │ │ │ └── @ StringNode (location: (38,0)-(38,1)) │ │ │ │ ├── flags: ∅ │ │ │ │ ├── opening_loc: ∅ diff --git a/test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt b/test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt index b9c6da2367..2de7dd439c 100644 --- a/test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt +++ b/test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt @@ -31,7 +31,7 @@ │ │ ├── opening_loc: ∅ │ │ ├── content_loc: (10,3)-(11,1) = "a\\\nb" │ │ ├── closing_loc: ∅ - │ │ └── unescaped: "ab" + │ │ └── unescaped: "a\nb" │ ├── opening_loc: (10,0)-(10,3) = "%W{" │ └── closing_loc: (11,1)-(11,2) = "}" ├── @ ArrayNode (location: (13,0)-(14,2)) diff --git a/test/prism/unescape_test.rb b/test/prism/unescape_test.rb index 92b7869d0c..4104b051dd 100644 --- a/test/prism/unescape_test.rb +++ b/test/prism/unescape_test.rb @@ -104,7 +104,7 @@ module Prism # [Context::String.new("<<~\"H\"\n", "\nH"), escapes], # [Context::String.new("<<~`H`\n", "\nH"), escapes], [Context::List.new("%w[", "]"), escapes], - # [Context::List.new("%W[", "]"), escapes], + [Context::List.new("%W[", "]"), escapes], [Context::List.new("%i[", "]"), escapes], # [Context::List.new("%I[", "]"), escapes], # [Context::Symbol.new("%s[", "]"), escapes], |
