summaryrefslogtreecommitdiff
path: root/test/prism/ruby_parser_test.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-03-25 08:32:58 -0400
committerKevin Newton <kddnewton@gmail.com>2024-03-25 11:52:09 -0400
commit14ab698967cdaedc0a922a2bdf30dfc69bdba7eb (patch)
tree8917fec07e109a3d077e3bea25c5d77d59cc172d /test/prism/ruby_parser_test.rb
parenta31ca3500d995b6706f94ff72166d699c5faeb27 (diff)
[ruby/prism] Handle CLRF inside heredoc contents
https://github.com/ruby/prism/commit/1fbac72485
Diffstat (limited to 'test/prism/ruby_parser_test.rb')
-rw-r--r--test/prism/ruby_parser_test.rb21
1 files changed, 4 insertions, 17 deletions
diff --git a/test/prism/ruby_parser_test.rb b/test/prism/ruby_parser_test.rb
index 952e493af9..e06b7ae438 100644
--- a/test/prism/ruby_parser_test.rb
+++ b/test/prism/ruby_parser_test.rb
@@ -52,25 +52,10 @@ module Prism
whitequark/string_concat.txt
]
- # These files contain CRLF line endings, which ruby_parser translates into
- # LF before it gets back to the node. This means the node actually has the
- # wrong contents.
- crlf = %w[
- dos_endings.txt
- heredoc_with_comment.txt
- seattlerb/heredoc__backslash_dos_format.txt
- seattlerb/heredoc_with_carriage_return_escapes_windows.txt
- seattlerb/heredoc_with_extra_carriage_horrible_mix.txt
- seattlerb/heredoc_with_extra_carriage_returns_windows.txt
- seattlerb/heredoc_with_extra_carriage_returns.txt
- seattlerb/heredoc_with_interpolation_and_carriage_return_escapes_windows.txt
- seattlerb/heredoc_with_only_carriage_returns_windows.txt
- seattlerb/heredoc_with_only_carriage_returns.txt
- ]
-
# https://github.com/seattlerb/ruby_parser/issues/344
- failures = crlf | %w[
+ failures = %w[
alias.txt
+ dos_endings.txt
heredocs_with_ignored_newlines.txt
method_calls.txt
methods.txt
@@ -79,8 +64,10 @@ module Prism
patterns.txt
regex.txt
seattlerb/and_multi.txt
+ seattlerb/heredoc__backslash_dos_format.txt
seattlerb/heredoc_bad_hex_escape.txt
seattlerb/heredoc_bad_oct_escape.txt
+ seattlerb/heredoc_with_extra_carriage_horrible_mix.txt
spanning_heredoc_newlines.txt
spanning_heredoc.txt
tilde_heredocs.txt