Skip to content

Commit

Permalink
Add OrderTests for SortedSet (#2915)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooohn authored and kailuowang committed Jun 27, 2019
1 parent 4df64bd commit e2c255e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/src/test/scala/cats/tests/SortedSetSuite.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cats
package tests

import cats.kernel.laws.discipline.{BoundedSemilatticeTests, HashTests, PartialOrderTests}
import cats.kernel.laws.discipline.{BoundedSemilatticeTests, HashTests, OrderTests, PartialOrderTests}
import cats.kernel.{BoundedSemilattice, Semilattice}
import cats.laws._
import cats.laws.discipline.SemigroupalTests.Isomorphisms
Expand All @@ -19,6 +19,8 @@ class SortedSetSuite extends CatsSuite {
checkAll("Semigroupal[SortedSet]", SerializableTests.serializable(Semigroupal[SortedSet]))

checkAll("SortedSet[Int]", FoldableTests[SortedSet].foldable[Int, Int])
checkAll("Order[SortedSet[Int]]", OrderTests[SortedSet[Int]].order)
checkAll("Order.reverse(Order[SortedSet[Int]])", OrderTests(Order.reverse(Order[SortedSet[Int]])).order)
checkAll("PartialOrder[SortedSet[Int]]", PartialOrderTests[SortedSet[Int]].partialOrder)
checkAll("PartialOrder.reverse(PartialOrder[SortedSet[Int]])",
PartialOrderTests(PartialOrder.reverse(PartialOrder[SortedSet[Int]])).partialOrder)
Expand Down

0 comments on commit e2c255e

Please sign in to comment.