-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
addressed review feedback, moved implicits to the top of the hierarch…
…y (available to all)
- Loading branch information
1 parent
cfb8ead
commit 6af528d
Showing
10 changed files
with
32 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
tests/src/test/scala/cats/tests/PartialFunctionSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
package cats.tests | ||
import cats.arrow.{ArrowChoice, Choice, CommutativeArrow} | ||
import cats.arrow.{ArrowChoice, CommutativeArrow} | ||
import cats.kernel.laws.discipline.SerializableTests | ||
import cats.laws.discipline.arbitrary._ | ||
import cats.laws.discipline.eq._ | ||
import cats.laws.discipline.{ArrowChoiceTests, ChoiceTests, CommutativeArrowTests, MiniInt} | ||
import cats.laws.discipline.{ArrowChoiceTests, CommutativeArrowTests, MiniInt} | ||
|
||
class PartialFunctionSuite extends CatsSuite { | ||
|
||
checkAll("ArrowChoice[PartialFunction]", SerializableTests.serializable(ArrowChoice[PartialFunction])) | ||
|
||
checkAll("PartialFunction", | ||
ArrowChoiceTests[PartialFunction].arrowChoice[MiniInt, MiniInt, MiniInt, MiniInt, MiniInt, MiniInt] | ||
) | ||
|
||
checkAll("CommutativeArrow[PartialFunction]", SerializableTests.serializable(CommutativeArrow[PartialFunction])) | ||
checkAll( | ||
"PartialFunction", | ||
CommutativeArrowTests[PartialFunction].commutativeArrow[MiniInt, MiniInt, MiniInt, MiniInt, MiniInt, MiniInt] | ||
) | ||
checkAll("Arrow[PartialFunction]", SerializableTests.serializable(CommutativeArrow[PartialFunction])) | ||
|
||
checkAll("PartialFunction", ChoiceTests[PartialFunction].choice[MiniInt, Boolean, Int, Long]) | ||
checkAll("Choice[PartialFunction]", SerializableTests.serializable(Choice[PartialFunction])) | ||
|
||
checkAll("PartialFunction", | ||
ArrowChoiceTests[PartialFunction].arrowChoice[MiniInt, MiniInt, MiniInt, MiniInt, MiniInt, MiniInt]) | ||
checkAll("ArrowChoice[PartialFunction]", SerializableTests.serializable(ArrowChoice[PartialFunction])) | ||
|
||
} |