Skip to content

Commit

Permalink
[PRISM] Enable TestSyntax#test_syntax_error_at_newline
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed May 16, 2024
1 parent 14debd1 commit 52401a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion test/.excludes-prism/TestSyntax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
exclude(:test_error_message_encoding, "syntax error message encoding")
exclude(:test_it, "https://github.com/ruby/prism/issues/2323")
exclude(:test_numbered_parameter, "should raise syntax error for numbered parameters in inner blocks")
exclude(:test_syntax_error_at_newline, "error message format")
exclude(:test_unterminated_heredoc_cr, "quoted \r heredoc terminators should not match \r\n")
exclude(:test_warn_balanced, "missing warning for ** being interpreted as a binary operator")

Expand Down
2 changes: 1 addition & 1 deletion test/ruby/test_syntax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ def test_syntax_error_in_rescue
end

def test_syntax_error_at_newline
expected = "\n ^"
expected = /(\n|\| ) \^/
assert_syntax_error("%[abcdef", expected)
assert_syntax_error("%[abcdef\n", expected)
end
Expand Down

0 comments on commit 52401a3

Please sign in to comment.