diff --git a/tests/src/test/scala/cats/tests/EitherSuite.scala b/tests/src/test/scala/cats/tests/EitherSuite.scala index 7c69c99d91..7dff18ad7e 100644 --- a/tests/src/test/scala/cats/tests/EitherSuite.scala +++ b/tests/src/test/scala/cats/tests/EitherSuite.scala @@ -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)) @@ -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)) + } + } +}