ruby-changes:51773
From: nobu <ko1@a...>
Date: Tue, 17 Jul 2018 10:26:31 +0900 (JST)
Subject: [ruby-changes:51773] nobu:r63985 (trunk): test for wrong order: option
nobu 2018-07-17 10:26:22 +0900 (Tue, 17 Jul 2018) New Revision: 63985 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63985 Log: test for wrong order: option Modified files: trunk/test/ruby/test_exception.rb Index: test/ruby/test_exception.rb =================================================================== --- test/ruby/test_exception.rb (revision 63984) +++ test/ruby/test_exception.rb (revision 63985) @@ -1304,6 +1304,10 @@ $stderr = $stdout; raise "\x82\xa0"') do https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L1304 assert_operator(message, :start_with?, remark) assert_operator(message, :end_with?, bottom) + assert_raise_with_message(ArgumentError, /:top or :bottom/) { + e.full_message(highlight: false, order: :middle) + } + message = e.full_message(highlight: true) assert_match(/\e/, message) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/