ruby-changes:50583
From: nobu <ko1@a...>
Date: Tue, 13 Mar 2018 00:19:45 +0900 (JST)
Subject: [ruby-changes:50583] nobu:r62729 (trunk): assertions.rb: parentheses
nobu 2018-03-13 00:19:37 +0900 (Tue, 13 Mar 2018) New Revision: 62729 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62729 Log: assertions.rb: parentheses * test/lib/test/unit/assertions.rb (assert_not_all): fix missing parentheses. Modified files: trunk/test/lib/test/unit/assertions.rb Index: test/lib/test/unit/assertions.rb =================================================================== --- test/lib/test/unit/assertions.rb (revision 62728) +++ test/lib/test/unit/assertions.rb (revision 62729) @@ -474,7 +474,7 @@ EOT https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L474 failed = [] obj.each do |*a, &b| if blk.call(*a, &b) - failed << a.size > 1 ? a : a[0] + failed << (a.size > 1 ? a : a[0]) end end assert(failed.empty?, message(m) {failed.pretty_inspect}) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/