Skip to content

Commit

Permalink
Simplify DeepEqualTo to EqualTo in AnyOf/AllOf tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdrdr committed Feb 6, 2011
1 parent 05b4f14 commit 527ee8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/core_test.go
Expand Up @@ -204,7 +204,7 @@ func Test_AllOf(t *testing.T) {
we.CheckThat(AllOf(no).Match(0), DidNotMatch.Comment("can fail one matcher"))
we.CheckThat(AllOf(yes, no, snoop).Match(0), DidNotMatch.Comment("can short-circuit"))
we.CheckFalse(calledSnoop, "AllOf should short-circuit on first non-match")
logSamples(t, AllOf(Not(True()), NonNil(), DeepEqualTo(42)))
logSamples(t, AllOf(Not(True()), NonNil(), EqualTo(42)))
}

func Test_AnyOf(t *testing.T) {
Expand All @@ -221,7 +221,7 @@ func Test_AnyOf(t *testing.T) {
we.CheckThat(AnyOf(no).Match(0), DidNotMatch.Comment("can fail one matcher"))
we.CheckThat(AnyOf(no, yes, snoop).Match(0), Matched.Comment("can short-circuit"))
we.CheckFalse(calledSnoop, "AnyOf should short-circuit on first match")
logSamples(t, AnyOf(True(), Nil(), DeepEqualTo(42)))
logSamples(t, AnyOf(True(), Nil(), EqualTo(42)))
}

func Test_Applying_onFunction_FromType_ToType(t *testing.T) {
Expand Down

0 comments on commit 527ee8a

Please sign in to comment.