From 2a56702eeea5a571eaa2af15967c6535395e83a2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 27 Jun 2019 15:13:45 +0900 Subject: [PATCH] Test for unterminated here-docs --- test/ripper/test_parser_events.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index 1d2c501c3b..eb423b397e 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -485,6 +485,12 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal(1, width) end + def test_unterminated_heredoc + assert_match("can't find string \"a\" anywhere before EOF", compile_error("<