Skip to content

Commit

Permalink
Merge pull request #1999 from andyscott/feature/EitherT-cond-test-cle…
Browse files Browse the repository at this point in the history
…anup

Fix order of comparison for EitherT.cond
  • Loading branch information
fthomas committed Oct 31, 2017
2 parents 1f0cba0 + b35c6b4 commit 4687568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/test/scala/cats/tests/EitherTSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ class EitherTSuite extends CatsSuite {
}
}

test("cond") {
test("cond consistent with Either.cond") {
forAll { (cond: Boolean, s: String, i: Int) =>
Either.cond(cond, s, i) should === (EitherT.cond[Id](cond, s, i).value)
EitherT.cond[Id](cond, s, i).value should === (Either.cond(cond, s, i))
}
}

Expand Down

0 comments on commit 4687568

Please sign in to comment.