From b35c6b4dea7d6f50dca86c9a65f77043bcf10517 Mon Sep 17 00:00:00 2001 From: Andy Scott Date: Mon, 30 Oct 2017 15:57:01 -0700 Subject: [PATCH] Fix order of comparison for EitherT.cond --- tests/src/test/scala/cats/tests/EitherTSuite.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/test/scala/cats/tests/EitherTSuite.scala b/tests/src/test/scala/cats/tests/EitherTSuite.scala index 87cb2cc14a..9fa74fb280 100644 --- a/tests/src/test/scala/cats/tests/EitherTSuite.scala +++ b/tests/src/test/scala/cats/tests/EitherTSuite.scala @@ -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)) } }