mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Place error count in parens next to failures
This commit is contained in:
parent
aee171656a
commit
1e3e0daa04
1 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
require "colorize"
|
||||||
|
|
||||||
module Spectator::Formatting::Components
|
module Spectator::Formatting::Components
|
||||||
struct Totals
|
struct Totals
|
||||||
def initialize(@examples : Int32, @failures : Int32, @errors : Int32, @pending : Int32)
|
def initialize(@examples : Int32, @failures : Int32, @errors : Int32, @pending : Int32)
|
||||||
|
@ -25,9 +27,14 @@ module Spectator::Formatting::Components
|
||||||
io << @examples
|
io << @examples
|
||||||
io << " examples, "
|
io << " examples, "
|
||||||
io << @failures
|
io << @failures
|
||||||
io << " failures, "
|
io << " failures "
|
||||||
|
|
||||||
|
if @errors > 1
|
||||||
|
io << '('
|
||||||
io << @errors
|
io << @errors
|
||||||
io << " errors, "
|
io << " errors), "
|
||||||
|
end
|
||||||
|
|
||||||
io << @pending
|
io << @pending
|
||||||
io << " pending"
|
io << " pending"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue