summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-31 14:22:45 -0400
committergit <svn-admin@ruby-lang.org>2024-05-31 19:31:52 +0000
commit47f05dffa1a3cf95fa4a5f2511cd85aeb2341712 (patch)
tree24d6e4b7dcf4e096e961c20aa0f401ba375cefb3 /test
parent02b27aca50c5f58f0f358eeb074a934f7c02da10 (diff)
[ruby/prism] Match match_hash_var when quotes are used
https://github.com/ruby/prism/commit/f2a327449a
Diffstat (limited to 'test')
-rw-r--r--test/prism/ruby/parser_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/prism/ruby/parser_test.rb b/test/prism/ruby/parser_test.rb
index 9861c1c589..d0a58fca01 100644
--- a/test/prism/ruby/parser_test.rb
+++ b/test/prism/ruby/parser_test.rb
@@ -83,7 +83,6 @@ module Prism
"unparser/corpus/semantic/dstr.txt",
"whitequark/dedenting_interpolating_heredoc_fake_line_continuation.txt",
"whitequark/masgn_nested.txt",
- "whitequark/newline_in_hash_argument.txt",
"whitequark/parser_bug_640.txt",
"whitequark/parser_slash_slash_n_escaping_in_literals.txt",
"whitequark/ruby_bug_11989.txt",
@@ -167,6 +166,7 @@ module Prism
"whitequark/interp_digit_var.txt",
"whitequark/lbrace_arg_after_command_args.txt",
"whitequark/multiple_pattern_matches.txt",
+ "whitequark/newline_in_hash_argument.txt",
"whitequark/parser_drops_truncated_parts_of_squiggly_heredoc.txt",
"whitequark/ruby_bug_11990.txt",
"whitequark/ruby_bug_14690.txt",
@@ -215,7 +215,7 @@ module Prism
assert_equal_tokens(expected_tokens, actual_tokens) if compare_tokens
assert_equal_comments(expected_comments, actual_comments) if compare_comments
elsif compare_asts
- flunk "expected: #{expected_ast.inspect}\nactual: #{actual_ast.inspect}"
+ assert_equal expected_ast, actual_ast, -> { assert_equal_asts_message(expected_ast, actual_ast) }
end
end