* lib/test/unit.rb: Refactoring. Unified if and elsif.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
580f7c95a5
commit
80b64d145a
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 21 11:21:32 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
|
* lib/test/unit.rb: Refactoring. Unified if and elsif.
|
||||||
|
|
||||||
Sun Mar 20 23:09:34 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
Sun Mar 20 23:09:34 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* ext/date/date_strftime.c: checks duplicated modifiers.
|
* ext/date/date_strftime.c: checks duplicated modifiers.
|
||||||
|
@ -487,20 +487,13 @@ module Test
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if @interrupt || @opts[:no_retry]
|
if @interrupt || @opts[:no_retry] || @need_quit
|
||||||
rep.each do |r|
|
rep.each do |r|
|
||||||
report.push(*r[:report])
|
report.push(*r[:report])
|
||||||
end
|
end
|
||||||
@errors += rep.map{|x| x[:result][0] }.inject(:+)
|
@errors += rep.map{|x| x[:result][0] }.inject(:+)
|
||||||
@failures += rep.map{|x| x[:result][1] }.inject(:+)
|
@failures += rep.map{|x| x[:result][1] }.inject(:+)
|
||||||
@skips += rep.map{|x| x[:result][2] }.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
|
else
|
||||||
puts ""
|
puts ""
|
||||||
puts "Retrying..."
|
puts "Retrying..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user