Skip to content

Commit

Permalink
Merge pull request #753 from ceedubs/cokleisli-contramapValue-test
Browse files Browse the repository at this point in the history
Check that Cokleisli contramapValue and lmap methods are consistent
  • Loading branch information
adelbertc committed Dec 17, 2015
2 parents 5aa37e9 + 1a3b465 commit 279018e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/test/scala/cats/tests/CokleisliTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,9 @@ class CokleisliTests extends SlowCatsSuite {

}

test("contramapValue with Id consistent with lmap"){
forAll { (c: Cokleisli[Id, Int, Long], f: Char => Int) =>
c.contramapValue[Char](f) should === (c.lmap(f))
}
}
}

0 comments on commit 279018e

Please sign in to comment.