[PRISM] Enable TestParse#test_unexpected_token_after_numeric
This commit is contained in:
parent
901f4c3fb7
commit
cabc0e093c
@ -6,5 +6,4 @@ exclude(:test_question, "error message format")
|
|||||||
exclude(:test_string, "error message format")
|
exclude(:test_string, "error message format")
|
||||||
exclude(:test_truncated_source_line, "truncate error message")
|
exclude(:test_truncated_source_line, "truncate error message")
|
||||||
exclude(:test_unexpected_eof, "error message format")
|
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")
|
exclude(:test_void_value_in_rhs, "missing raising error for some void value expressions")
|
||||||
|
@ -1336,9 +1336,9 @@ x = __ENCODING__
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_unexpected_token_after_numeric
|
def test_unexpected_token_after_numeric
|
||||||
assert_syntax_error('0000xyz', /^ \^~~\Z/)
|
assert_syntax_error('0000xyz', /(^|\| ) \^~~(?!~)/)
|
||||||
assert_syntax_error('1.2i1.1', /^ \^~~\Z/)
|
assert_syntax_error('1.2i1.1', /(^|\| ) \^~~(?!~)/)
|
||||||
assert_syntax_error('1.2.3', /^ \^~\Z/)
|
assert_syntax_error('1.2.3', /(^|\| ) \^~(?!~)/)
|
||||||
assert_syntax_error('1.', /unexpected end-of-input/)
|
assert_syntax_error('1.', /unexpected end-of-input/)
|
||||||
assert_syntax_error('1e', /expecting end-of-input/)
|
assert_syntax_error('1e', /expecting end-of-input/)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user