diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-12 12:04:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-12 12:04:03 +0000 |
commit | 8952525a8e688e0fe67bbc7a3c84256190a44c23 (patch) | |
tree | 44e77dd90370d8e5d47e48aeb3dddc78436d1ce7 /test | |
parent | b6468b01f7288789ef2e9bf548d81cdadb8ef053 (diff) | |
download | ruby-8952525a8e688e0fe67bbc7a3c84256190a44c23.tar.gz |
Assertion for r67226
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_encoding.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_encoding.rb b/test/ruby/test_encoding.rb index 8f73a8fce1..a088fe1aa4 100644 --- a/test/ruby/test_encoding.rb +++ b/test/ruby/test_encoding.rb @@ -120,9 +120,10 @@ class TestEncoding < Test::Unit::TestCase assert_separately(%w[--disable=gems], "#{<<~"begin;"}\n#{<<~'end;'}") bug9038 = '[ruby-core:57949] [Bug #9038]' begin; - assert_raise_with_message(SyntaxError, /unknown regexp option - Q/, bug9038) { + e = assert_raise_with_message(SyntaxError, /unknown regexp option - Q/, bug9038) { eval("/regexp/sQ") } + assert_include(e.message, "/regexp/sQ\n") end; end end |