Skip to content

Commit ca1d44e

Browse files
committed
Mark some parser translator tests as being known failures
Without a change from `parser`, this is impossible to correctly handle.
1 parent 2fbec1c commit ca1d44e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/prism/ruby/parser_test.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,20 @@ class ParserTest < TestCase
7272

7373
# Contains an escaped multibyte character. This is supposed to drop to backslash
7474
"seattlerb/regexp_escape_extended.txt",
75+
76+
# https://github.com/whitequark/parser/issues/1020
77+
# These contain consecutive \r characters, followed by \n. Prism only receives
78+
# the already modified source buffer which dropped one \r but must know the
79+
# original code to parse it correctly.
80+
"seattlerb/heredoc_with_extra_carriage_returns_windows.txt",
81+
"seattlerb/heredoc_with_only_carriage_returns_windows.txt",
82+
"seattlerb/heredoc_with_only_carriage_returns.txt",
7583
]
7684

7785
# These files are either failing to parse or failing to translate, so we'll
7886
# skip them for now.
7987
skip_all = skip_incorrect | [
8088
"unescaping.txt",
81-
"seattlerb/heredoc_with_extra_carriage_returns_windows.txt",
82-
"seattlerb/heredoc_with_only_carriage_returns_windows.txt",
83-
"seattlerb/heredoc_with_only_carriage_returns.txt",
8489
"seattlerb/pctW_lineno.txt",
8590
"seattlerb/regexp_esc_C_slash.txt",
8691
"unparser/corpus/literal/literal.txt",

0 commit comments

Comments
 (0)