Skip to content

Commit

Permalink
Add adaptError and adaptErr syntax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown committed Nov 14, 2019
1 parent d01a0b5 commit a727fbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/test/scala/cats/tests/SyntaxSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ object SyntaxSuite
val eb = mock[E => B]
val ab = mock[A => B]
val gb: G[B] = gea.redeem(eb, ab)

val pfee = mock[PartialFunction[E, E]]
val gea5 = gea.adaptErr(pfee)
}

def testApplicativeErrorSubtype[F[_], A](implicit F: ApplicativeError[F, CharSequence]): Unit = {
Expand Down Expand Up @@ -454,6 +457,9 @@ object SyntaxSuite
val efb = mock[E => G[B]]
val afb = mock[A => G[B]]
val gb2: G[B] = gea.redeemWith(efb, afb)

val pfee = mock[PartialFunction[E, E]]
val gea5 = gea.adaptError(pfee)
}

def testNested[F[_], G[_], A]: Unit = {
Expand Down

0 comments on commit a727fbf

Please sign in to comment.