[ruby/prism] Ignore incorrect files
https://github.com/ruby/prism/commit/d1094ac232
This commit is contained in:
parent
13301587cf
commit
170058ca9e
@ -43,13 +43,16 @@ module Prism
|
|||||||
class ParserTest < TestCase
|
class ParserTest < TestCase
|
||||||
base = File.join(__dir__, "fixtures")
|
base = File.join(__dir__, "fixtures")
|
||||||
|
|
||||||
|
# These files are erroring because of the parser gem being wrong.
|
||||||
|
skip_incorrect = %w[
|
||||||
|
embdoc_no_newline_at_end.txt
|
||||||
|
]
|
||||||
|
|
||||||
# These files are either failing to parse or failing to translate, so we'll
|
# These files are either failing to parse or failing to translate, so we'll
|
||||||
# skip them for now.
|
# skip them for now.
|
||||||
skip_all = %w[
|
skip_all = skip_incorrect | %w[
|
||||||
constants.txt
|
|
||||||
dash_heredocs.txt
|
dash_heredocs.txt
|
||||||
dos_endings.txt
|
dos_endings.txt
|
||||||
embdoc_no_newline_at_end.txt
|
|
||||||
heredocs_with_ignored_newlines.txt
|
heredocs_with_ignored_newlines.txt
|
||||||
regex.txt
|
regex.txt
|
||||||
spanning_heredoc.txt
|
spanning_heredoc.txt
|
||||||
@ -67,6 +70,7 @@ module Prism
|
|||||||
# output expected by the parser gem, so we'll skip them for now.
|
# output expected by the parser gem, so we'll skip them for now.
|
||||||
skip_tokens = %w[
|
skip_tokens = %w[
|
||||||
comments.txt
|
comments.txt
|
||||||
|
constants.txt
|
||||||
endless_range_in_conditional.txt
|
endless_range_in_conditional.txt
|
||||||
heredoc_with_comment.txt
|
heredoc_with_comment.txt
|
||||||
heredoc_with_escaped_newline_at_start.txt
|
heredoc_with_escaped_newline_at_start.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user