ruby-changes:19101
From: sorah <ko1@a...>
Date: Mon, 21 Mar 2011 11:23:32 +0900 (JST)
Subject: [ruby-changes:19101] Ruby:r31140 (trunk): * lib/test/unit.rb: Refactoring. Unified if and elsif.
sorah 2011-03-21 11:23:21 +0900 (Mon, 21 Mar 2011) New Revision: 31140 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31140 Log: * lib/test/unit.rb: Refactoring. Unified if and elsif. Modified files: trunk/ChangeLog trunk/lib/test/unit.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 31139) +++ ChangeLog (revision 31140) @@ -1,3 +1,7 @@ +Mon Mar 21 11:21:32 2011 Shota Fukumori <sorah@t...> + + * lib/test/unit.rb: Refactoring. Unified if and elsif. + Sun Mar 20 23:09:34 2011 Tadayoshi Funaba <tadf@d...> * ext/date/date_strftime.c: checks duplicated modifiers. Index: lib/test/unit.rb =================================================================== --- lib/test/unit.rb (revision 31139) +++ lib/test/unit.rb (revision 31140) @@ -487,20 +487,13 @@ end end - if @interrupt || @opts[:no_retry] + if @interrupt || @opts[:no_retry] || @need_quit rep.each do |r| report.push(*r[:report]) end @errors += rep.map{|x| x[:result][0] }.inject(:+) @failures += rep.map{|x| x[:result][1] }.inject(:+) @skips += rep.map{|x| x[:result][2] }.inject(:+) - elsif @need_quit - rep.each do |r| - report.push(*r[:report]) - @errors += r[:result][0] - @failures += r[:result][1] - @skips += r[:result][2] - end else puts "" puts "Retrying..." -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/