Skip to content

Commit

Permalink
[PRISM] Enable test_location_of_invalid_token
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed May 15, 2024
1 parent be239cc commit cd8b28f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions test/.excludes-prism/TestParse.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
exclude(:test_global_variable, "error message format")
exclude(:test_invalid_char, "error message format")
exclude(:test_location_of_invalid_token, "error message format")
exclude(:test_percent, "error message format")
exclude(:test_question, "error message format")
exclude(:test_string, "error message format")
exclude(:test_truncated_source_line, "truncate error message")
exclude(:test_unexpected_eof, "error message format")
exclude(:test_void_value_in_rhs, "missing raising error for some void value expressions")
2 changes: 1 addition & 1 deletion test/ruby/test_parse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ def test_unexpected_eof
end
def test_location_of_invalid_token
assert_syntax_error('class xxx end', /^ \^~~\Z/)
assert_syntax_error('class xxx end', /(^|\| ) \^~~(?!~)/)
end
def test_whitespace_warning
Expand Down

0 comments on commit cd8b28f

Please sign in to comment.