mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
17 lines
319 B
Crystal
17 lines
319 B
Crystal
|
require "./result"
|
||
|
|
||
|
module Spectator
|
||
|
# Outcome that indicates running an example was successful.
|
||
|
class PassResult < Result
|
||
|
# Calls the `pass` method on *visitor*.
|
||
|
def accept(visitor)
|
||
|
visitor.pass
|
||
|
end
|
||
|
|
||
|
# One-word description of the result.
|
||
|
def to_s(io)
|
||
|
io << "pass"
|
||
|
end
|
||
|
end
|
||
|
end
|