summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ripper/test_parser_events.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb
index eb423b397e..cc3e208d41 100644
--- a/test/ripper/test_parser_events.rb
+++ b/test/ripper/test_parser_events.rb
@@ -489,6 +489,9 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
assert_match("can't find string \"a\" anywhere before EOF", compile_error("<<a"))
assert_match("can't find string \"a\" anywhere before EOF", compile_error('<<"a"'))
assert_match("can't find string \"a\" anywhere before EOF", compile_error("<<'a'"))
+ msg = nil
+ parse('<<"', :on_parse_error) {|_, e| msg = e}
+ assert_equal("unterminated here document identifier", msg)
end
def test_massign