Skip to content

Commit

Permalink
Test Monad map/flatMap coherence law
Browse files Browse the repository at this point in the history
This is basically the same story as typelevel#728, but it was introduced in
fa6457a.
  • Loading branch information
ceedubs committed Dec 10, 2015
1 parent 44b4ff4 commit 8788d9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion laws/src/main/scala/cats/laws/discipline/MonadTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ trait MonadTests[F[_]] extends ApplicativeTests[F] with FlatMapTests[F] {
def parents: Seq[RuleSet] = Seq(applicative[A, B, C], flatMap[A, B, C])
def props: Seq[(String, Prop)] = Seq(
"monad left identity" -> forAll(laws.monadLeftIdentity[A, B] _),
"monad right identity" -> forAll(laws.monadRightIdentity[A] _)
"monad right identity" -> forAll(laws.monadRightIdentity[A] _),
"map flatMap coherence" -> forAll(laws.mapFlatMapCoherence[A, B] _)
)
}
}
Expand Down

0 comments on commit 8788d9d

Please sign in to comment.