summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-02-16 13:55:43 -0500
committergit <[email protected]>2024-02-16 20:41:53 +0000
commit170058ca9eedd429ca675c78bd63896e71e52b8d (patch)
treeaf699926bc486551dcdb6c5238c6c17ee0b14995
parent13301587cf04b39ab8683f146ebf6d252d7ff728 (diff)
[ruby/prism] Ignore incorrect files
https://github.com/ruby/prism/commit/d1094ac232
-rw-r--r--test/prism/parser_test.rb10
1 files 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