From 45cdef021bc9b7cef32d2bcc426adea4355facfd Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 19 Jan 2019 13:42:45 -0700 Subject: [PATCH] Swap operands to get expected result --- src/spectator/matchers/case_matcher.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/matchers/case_matcher.cr b/src/spectator/matchers/case_matcher.cr index fdcde58..5c3b3a6 100644 --- a/src/spectator/matchers/case_matcher.cr +++ b/src/spectator/matchers/case_matcher.cr @@ -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.