ruby-changes:55020
From: nobu <ko1@a...>
Date: Tue, 12 Mar 2019 21:04:15 +0900 (JST)
Subject: [ruby-changes:55020] nobu:r67227 (trunk): Assertion for r67226
nobu 2019-03-12 21:04:03 +0900 (Tue, 12 Mar 2019) New Revision: 67227 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67227 Log: Assertion for r67226 Modified files: trunk/test/ruby/test_encoding.rb Index: test/ruby/test_encoding.rb =================================================================== --- test/ruby/test_encoding.rb (revision 67226) +++ test/ruby/test_encoding.rb (revision 67227) @@ -120,9 +120,10 @@ class TestEncoding < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/ruby/test_encoding.rb#L120 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/