summaryrefslogtreecommitdiff
path: root/test/prism/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/ruby')
-rw-r--r--test/prism/ruby/parser_test.rb3
-rw-r--r--test/prism/ruby/ripper_test.rb5
-rw-r--r--test/prism/ruby/ruby_parser_test.rb5
3 files changed, 11 insertions, 2 deletions
diff --git a/test/prism/ruby/parser_test.rb b/test/prism/ruby/parser_test.rb
index 129c38a3b5..98740f0973 100644
--- a/test/prism/ruby/parser_test.rb
+++ b/test/prism/ruby/parser_test.rb
@@ -67,6 +67,9 @@ module Prism
# Cannot yet handling leading logical operators.
"leading_logical.txt",
+
+ # Ruby >= 3.5 specific syntax
+ "endless_methods_command_call.txt",
]
# These files contain code that is being parsed incorrectly by the parser
diff --git a/test/prism/ruby/ripper_test.rb b/test/prism/ruby/ripper_test.rb
index 6372024878..39325137ba 100644
--- a/test/prism/ruby/ripper_test.rb
+++ b/test/prism/ruby/ripper_test.rb
@@ -29,7 +29,10 @@ module Prism
"whitequark/lvar_injecting_match.txt",
# Ripper fails to understand some structures that span across heredocs.
- "spanning_heredoc.txt"
+ "spanning_heredoc.txt",
+
+ # https://bugs.ruby-lang.org/issues/17398#note-12
+ "endless_methods_command_call.txt",
]
# Skip these tests that we haven't implemented yet.
diff --git a/test/prism/ruby/ruby_parser_test.rb b/test/prism/ruby/ruby_parser_test.rb
index f4f0f331fb..bcaed79791 100644
--- a/test/prism/ruby/ruby_parser_test.rb
+++ b/test/prism/ruby/ruby_parser_test.rb
@@ -74,7 +74,10 @@ module Prism
"whitequark/ruby_bug_11989.txt",
"whitequark/ruby_bug_18878.txt",
"whitequark/ruby_bug_19281.txt",
- "whitequark/slash_newline_in_heredocs.txt"
+ "whitequark/slash_newline_in_heredocs.txt",
+
+ # Ruby >= 3.5 specific syntax
+ "endless_methods_command_call.txt",
]
Fixture.each(except: failures) do |fixture|