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