summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-04 12:11:37 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-04 12:11:37 +0900
commit35c3a24c8cbcccff1108079360e2063fc354b4bd (patch)
treeb274f69203f0575cff52483e04ff43e81477b902 /test
parent68c2fc4cc0b3bbf865c381d1ff1281a3ac520cd6 (diff)
Fixed error message when % at EOF
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_parse.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 5f638afa01..4b7a12c8ef 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -601,6 +601,7 @@ class TestParse < Test::Unit::TestCase
assert_syntax_error('%z()', /unknown type/)
assert_syntax_error("%\u3042", /unknown type/)
assert_syntax_error("%q\u3042", /unknown type/)
+ assert_syntax_error("%", /unterminated quoted string/)
end
def test_symbol