Swap operands to get expected result

This commit is contained in:
Michael Miller 2019-01-19 13:42:45 -07:00
parent 4a1b646015
commit 45cdef021b

View file

@ -7,7 +7,7 @@ module Spectator::Matchers
# Determines whether the matcher is satisfied with the value given to it.
# True is returned if the match was successful, false otherwise.
def match?(partial : Expectations::ValueExpectationPartial(ActualType)) : Bool forall ActualType
partial.actual === expected
expected === partial.actual
end
# Describes the condition that satisfies the matcher.