Skip to content

Commit

Permalink
Serialization test for Compose instance for Map
Browse files Browse the repository at this point in the history
  • Loading branch information
denisrosca committed Aug 15, 2018
1 parent c6abd50 commit 9ffd739
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/src/test/scala/cats/tests/MapSuite.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cats
package tests

import cats.arrow.Compose
import cats.laws.discipline.{FlatMapTests, SemigroupalTests, SerializableTests, UnorderedTraverseTests, ComposeTests}

class MapSuite extends CatsSuite {
Expand All @@ -15,7 +16,8 @@ class MapSuite extends CatsSuite {
checkAll("Map[Int, Int] with Option", UnorderedTraverseTests[Map[Int, ?]].unorderedTraverse[Int, Int, Int, Option, Option])
checkAll("UnorderedTraverse[Map[Int, ?]]", SerializableTests.serializable(UnorderedTraverse[Map[Int, ?]]))

checkAll("Compose[Map]", ComposeTests[Map].compose[Int, Long, String, Double])
checkAll("Map[Int, Long]", ComposeTests[Map].compose[Int, Long, String, Double])
checkAll("Compose[Map]", SerializableTests.serializable(Compose[Map]))


test("show isn't empty and is formatted as expected") {
Expand Down

0 comments on commit 9ffd739

Please sign in to comment.