From 170058ca9eedd429ca675c78bd63896e71e52b8d Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Fri, 16 Feb 2024 13:55:43 -0500 Subject: [PATCH] [ruby/prism] Ignore incorrect files https://github.com/ruby/prism/commit/d1094ac232 --- test/prism/parser_test.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/prism/parser_test.rb b/test/prism/parser_test.rb index 087cf72292..26cc2f5b97 100644 --- a/test/prism/parser_test.rb +++ b/test/prism/parser_test.rb @@ -43,13 +43,16 @@ module Prism class ParserTest < TestCase 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 # skip them for now. - skip_all = %w[ - constants.txt + skip_all = skip_incorrect | %w[ dash_heredocs.txt dos_endings.txt - embdoc_no_newline_at_end.txt heredocs_with_ignored_newlines.txt regex.txt spanning_heredoc.txt @@ -67,6 +70,7 @@ module Prism # output expected by the parser gem, so we'll skip them for now. skip_tokens = %w[ comments.txt + constants.txt endless_range_in_conditional.txt heredoc_with_comment.txt heredoc_with_escaped_newline_at_start.txt