Skip to content

Commit

Permalink
Increase WriterT coverage, tut:reset
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-lazaro committed Nov 27, 2017
1 parent 2e8c20a commit a27927d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/main/tut/typeclasses/contravariantmonoidal.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ scaladoc: "#cats.ContravariantMonoidal"
The `ContravariantMonoidal` type class is for [`Contravariant`](contravariant.html) functors that can define a
`product` function and a `unit` function.

```scala
```tut:reset
import cats.Contravariant
trait ContravariantMonoidal[F[_]] extends Contravariant[F] {
Expand Down
5 changes: 4 additions & 1 deletion tests/src/test/scala/cats/tests/WriterTSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,11 @@ class WriterTSuite extends CatsSuite {
}

{
// F has a ContravariantMonoidal
// F has a ContravariantMonoidal
ContravariantMonoidal[WriterT[Const[String, ?], Int, ?]]

checkAll("WriterT[Const[String, ?], Int, ?]", ContravariantMonoidalTests[WriterT[Const[String, ?], Int, ?]].contravariantMonoidal[Int, Int, Int])
checkAll("ContravariantMonoidal[WriterT[Const[String, ?], Int, ?]]", SerializableTests.serializable(ContravariantMonoidal[WriterT[Const[String, ?], Int, ?]]))
}

checkAll("WriterT[Option, Int, ?]", CommutativeMonadTests[WriterT[Option, Int, ?]].commutativeMonad[Int, Int, Int])
Expand Down

0 comments on commit a27927d

Please sign in to comment.