Skip to content

Commit

Permalink
[PRISM] Enable TestParse#test_truncated_source_line
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed May 17, 2024
1 parent b90ea8a commit 761b907
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/ruby/test_parse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1353,9 +1353,13 @@ def test_unexpected_token_after_numeric
end
def test_truncated_source_line
e = assert_syntax_error("'0123456789012345678901234567890123456789' abcdefghijklmnopqrstuvwxyz0123456789 0123456789012345678901234567890123456789",
lineno = __LINE__ + 1
e = assert_syntax_error("'0123456789012345678901234567890123456789' abcdefghijklmnopqrstuvwxyz0123456789 123456789012345678901234567890123456789",
/unexpected local variable or method/)
line = e.message.lines[1]
line.delete_prefix!("> #{lineno} | ") if line.start_with?(">")
assert_operator(line, :start_with?, "...")
assert_operator(line, :end_with?, "...\n")
end
Expand Down

0 comments on commit 761b907

Please sign in to comment.