summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-26 21:36:22 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-26 21:36:22 +0900
commit445e5548c9da906a2d7a490e660328b2893d07d1 (patch)
tree981f38dd6b15e576bc1274023ffa645bf489dfe5 /test/ruby
parentcc36b5d4aced7c8df0c1933ef3482736de068cfc (diff)
Fixed error messages at non-ascii %string terminator
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_parse.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 1e909bce1b..422a7cba58 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -599,6 +599,8 @@ class TestParse < Test::Unit::TestCase
assert_syntax_error('%s', /unterminated quoted string/)
assert_syntax_error('%ss', /unknown type/)
assert_syntax_error('%z()', /unknown type/)
+ assert_syntax_error("%\u3042", /unknown type/)
+ assert_syntax_error("%q\u3042", /unknown type/)
end
def test_symbol