Skip to content

Commit

Permalink
added back deprecated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang authored Sep 13, 2019
1 parent ae1926a commit a01c226
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/src/test/scala/cats/tests/EitherSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class EitherSuite extends CatsSuite {
}
}

test("raiseOrPure syntax consistent with fromEither") {
test("liftTo syntax consistent with fromEither") {
val ev = ApplicativeError[Validated[String, *], String]
forAll { (fa: Either[String, Int]) =>
fa.liftTo[Validated[String, *]] should ===(ev.fromEither(fa))
Expand All @@ -363,3 +363,13 @@ class EitherSuite extends CatsSuite {
}

}

@deprecated("To test deprecated methods", "2.1.0")
class DeprecatedEitherSuite extends CatsSuite {
test("raiseOrPure syntax consistent with fromEither") {
val ev = ApplicativeError[Validated[String, *], String]
forAll { (fa: Either[String, Int]) =>
fa.raiseOrPure[Validated[String, *]] should ===(ev.fromEither(fa))
}
}
}

0 comments on commit a01c226

Please sign in to comment.