[ruby/prism] Mark some parser translator tests as being known failures

Without a change from `parser`, this is impossible to correctly handle.

https://github.com/ruby/prism/commit/ca1d44e808
This commit is contained in:
Earlopain 2025-01-15 10:45:26 +01:00 committed by git
parent cb6476a34e
commit 65fa58d3ae

View File

@ -72,15 +72,20 @@ module Prism
# Contains an escaped multibyte character. This is supposed to drop to backslash
"seattlerb/regexp_escape_extended.txt",
# https://github.com/whitequark/parser/issues/1020
# These contain consecutive \r characters, followed by \n. Prism only receives
# the already modified source buffer which dropped one \r but must know the
# original code to parse it correctly.
"seattlerb/heredoc_with_extra_carriage_returns_windows.txt",
"seattlerb/heredoc_with_only_carriage_returns_windows.txt",
"seattlerb/heredoc_with_only_carriage_returns.txt",
]
# These files are either failing to parse or failing to translate, so we'll
# skip them for now.
skip_all = skip_incorrect | [
"unescaping.txt",
"seattlerb/heredoc_with_extra_carriage_returns_windows.txt",
"seattlerb/heredoc_with_only_carriage_returns_windows.txt",
"seattlerb/heredoc_with_only_carriage_returns.txt",
"seattlerb/pctW_lineno.txt",
"seattlerb/regexp_esc_C_slash.txt",
"unparser/corpus/literal/literal.txt",