mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Define a pending result as neither passing nor failing
This commit is contained in:
parent
832ffbf403
commit
fb436d2ec4
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ module Spectator
|
|||
# Indicates whether the example failed.
|
||||
abstract def fail? : Bool
|
||||
|
||||
# Indicates whether the example was skipped.
|
||||
def pending? : Bool
|
||||
!pass? && !fail?
|
||||
end
|
||||
|
||||
# Creates a JSON object from the result information.
|
||||
def to_json(json : ::JSON::Builder, example)
|
||||
json.object do
|
||||
|
|
Loading…
Reference in a new issue