Skip to content

Commit b7a341f

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 b7a341f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/prism/ruby/parser_test.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,19 @@ 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. Prism only receives the already modified
78+
# source buffer but must know the original code to parse it correctly.
79+
"seattlerb/heredoc_with_extra_carriage_returns_windows.txt",
80+
"seattlerb/heredoc_with_only_carriage_returns_windows.txt",
81+
"seattlerb/heredoc_with_only_carriage_returns.txt",
7582
]
7683

7784
# These files are either failing to parse or failing to translate, so we'll
7885
# skip them for now.
7986
skip_all = skip_incorrect | [
8087
"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",
8488
"seattlerb/pctW_lineno.txt",
8589
"seattlerb/regexp_esc_C_slash.txt",
8690
"unparser/corpus/literal/literal.txt",

0 commit comments

Comments
 (0)