Skip to content

Commit

Permalink
trying to fix build for 2.11-
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang authored Jan 13, 2018
1 parent a9c118e commit cb2aba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/test/scala/cats/tests/OptionTSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class OptionTSuite extends CatsSuite {

test("OptionT[Id, A].getOrElse consistent with Option.getOrElse, with respect to types") {
forAll { (o: Option[Int]) =>
o.map(Right.apply).getOrElse(Left("error")) should === (OptionT[Id, Int](o).map(Right.apply).getOrElse(Left("error")))
o.map(Right.apply).getOrElse(Left("error")) should === (OptionT[Id, Int](o).map(Right.apply).getOrElse("error".asLeft[Int]))
}
}

Expand All @@ -162,7 +162,7 @@ class OptionTSuite extends CatsSuite {

test("OptionT[Id, A].getOrElseF consistent with Option.getOrElse, with respect to types") {
forAll { (o: Option[Int]) =>
o.map(Right.apply).getOrElse(Left("error")) should === (OptionT[Id, Int](o).map(Right.apply).getOrElseF(Left("error")))
o.map(Right.apply).getOrElse(Left("error")) should === (OptionT[Id, Int](o).map(Right.apply).getOrElseF("error".asLeft[Int]))
}
}
test("OptionT[Id, A].collect consistent with Option.collect") {
Expand Down

0 comments on commit cb2aba4

Please sign in to comment.