Skip to content

Commit

Permalink
Add missing .unorderedTraverse syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
andyscott committed Jan 11, 2018
1 parent 1a04fff commit c8712bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/scala/cats/syntax/traverse.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package cats
package syntax

trait TraverseSyntax extends Traverse.ToTraverseOps
trait TraverseSyntax
extends Traverse.ToTraverseOps
with UnorderedTraverse.ToUnorderedTraverseOps
8 changes: 8 additions & 0 deletions tests/src/test/scala/cats/tests/TraverseSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,11 @@ class TraverseSuiteAdditional extends CatsSuite {
checkZipWithIndexedStackSafety[Vector](_.toVector)
}
}

class UnorderedTraverseSuite extends CatsSuite {
test("UnorderedTraverse[Set[Int]].unorderedTraverse via syntax") {
forAll { (ins: Set[Int]) =>
ins.unorderedTraverse(in => in: Id[Int]).toList.sorted should === (ins.toList.sorted)
}
}
}

0 comments on commit c8712bf

Please sign in to comment.