diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_parse.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index b3795a4ac4..7ce236679c 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -490,7 +490,10 @@ class TestParse < Test::Unit::TestCase assert_equal(' ^', e.message.lines.last, mesg) e = assert_syntax_error('"\u{1234"', 'Unicode escape') - assert_match(' ^~~~~~~', e.message.lines.last, mesg) + assert_match(' ^', e.message.lines.last, mesg) + + e = assert_syntax_error('"\u{xxxx}"', 'invalid Unicode escape') + assert_match(' ^', e.message.lines.last, mesg) e = assert_syntax_error('"\M1"', /escape character syntax/) assert_equal(' ^~~', e.message.lines.last, mesg) |