2018-08-19 07:15:32 +00:00
|
|
|
module Spectator
|
2018-08-24 20:53:14 +00:00
|
|
|
abstract class Example
|
2018-09-13 03:31:44 +00:00
|
|
|
getter? finished = false
|
2018-09-23 18:16:38 +00:00
|
|
|
getter group : ExampleGroup
|
2018-09-11 03:51:14 +00:00
|
|
|
|
2018-09-15 19:25:11 +00:00
|
|
|
abstract def run : Result
|
2018-09-11 21:57:18 +00:00
|
|
|
abstract def description : String
|
2018-09-21 20:03:09 +00:00
|
|
|
|
2018-09-23 23:04:06 +00:00
|
|
|
def initialize(@group, sample_values : Internals::SampleValues)
|
2018-09-21 20:03:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
private getter locals
|
2018-09-24 02:24:28 +00:00
|
|
|
|
|
|
|
def to_s(io)
|
|
|
|
@group.to_s(io)
|
|
|
|
io << ' '
|
|
|
|
io << description
|
|
|
|
end
|
2018-08-19 07:15:32 +00:00
|
|
|
end
|
|
|
|
end
|