Add expectation class

This commit is contained in:
Michael Miller 2018-08-21 21:07:37 -06:00
parent 0ade9f4dfd
commit b709820e11
2 changed files with 12 additions and 4 deletions

View file

@ -1,9 +1,5 @@
require "./spectator/*"
def expect(actual : T) forall T
pp actual
end
# TODO: Write documentation for `Spectator`
module Spectator
VERSION = "0.1.0"

View file

@ -0,0 +1,12 @@
def expect(actual : T) forall T
Spectator::Expectation.new(actual)
end
module Spectator
class Expectation(T)
getter actual : T
protected def initialize(@actual : T)
end
end
end