Skip to content

Commit

Permalink
[PRISM] Enable TestParse#test_unexpected_token_after_numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed May 15, 2024
1 parent 901f4c3 commit cabc0e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion test/.excludes-prism/TestParse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
exclude(:test_string, "error message format")
exclude(:test_truncated_source_line, "truncate error message")
exclude(:test_unexpected_eof, "error message format")
exclude(:test_unexpected_token_after_numeric, "error message format")
exclude(:test_void_value_in_rhs, "missing raising error for some void value expressions")
6 changes: 3 additions & 3 deletions test/ruby/test_parse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1336,9 +1336,9 @@ def test_unexpected_token_error
end
def test_unexpected_token_after_numeric
assert_syntax_error('0000xyz', /^ \^~~\Z/)
assert_syntax_error('1.2i1.1', /^ \^~~\Z/)
assert_syntax_error('1.2.3', /^ \^~\Z/)
assert_syntax_error('0000xyz', /(^|\| ) \^~~(?!~)/)
assert_syntax_error('1.2i1.1', /(^|\| ) \^~~(?!~)/)
assert_syntax_error('1.2.3', /(^|\| ) \^~(?!~)/)
assert_syntax_error('1.', /unexpected end-of-input/)
assert_syntax_error('1e', /expecting end-of-input/)
end
Expand Down

0 comments on commit cabc0e0

Please sign in to comment.