mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
27 lines
339 B
Crystal
27 lines
339 B
Crystal
require "./result"
|
|
|
|
module Spectator
|
|
class FailedResult < Result
|
|
getter error : Exception
|
|
|
|
def passed?
|
|
false
|
|
end
|
|
|
|
def failed?
|
|
true
|
|
end
|
|
|
|
def errored?
|
|
false
|
|
end
|
|
|
|
def pending?
|
|
false
|
|
end
|
|
|
|
def initialize(example, elapsed, @error)
|
|
super(example, elapsed)
|
|
end
|
|
end
|
|
end
|