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
|
||||
struct Totals
|
||||
def initialize(@examples : Int32, @failures : Int32, @errors : Int32, @pending : Int32)
|
||||
|
@ -25,9 +27,14 @@ module Spectator::Formatting::Components
|
|||
io << @examples
|
||||
io << " examples, "
|
||||
io << @failures
|
||||
io << " failures, "
|
||||
io << @errors
|
||||
io << " errors, "
|
||||
io << " failures "
|
||||
|
||||
if @errors > 1
|
||||
io << '('
|
||||
io << @errors
|
||||
io << " errors), "
|
||||
end
|
||||
|
||||
io << @pending
|
||||
io << " pending"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue