1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Assertion for r67226

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-03-12 12:04:03 +00:00
parent b6468b01f7
commit 8952525a8e

View file

@ -120,9 +120,10 @@ class TestEncoding < Test::Unit::TestCase
assert_separately(%w[--disable=gems], "#{<<~"begin;"}\n#{<<~'end;'}") assert_separately(%w[--disable=gems], "#{<<~"begin;"}\n#{<<~'end;'}")
bug9038 = '[ruby-core:57949] [Bug #9038]' bug9038 = '[ruby-core:57949] [Bug #9038]'
begin; 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") eval("/regexp/sQ")
} }
assert_include(e.message, "/regexp/sQ\n")
end; end;
end end
end end