-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traverse instance for OneAnd #816
Conversation
@@ -13,6 +13,8 @@ import scala.util.Random | |||
class OneAndTests extends CatsSuite { | |||
checkAll("OneAnd[List, Int]", OrderLaws[OneAnd[List, Int]].eqv) | |||
|
|||
checkAll("OneAnd[List, Int] with Option", TraverseTests[OneAnd[List, ?]].traverse[Int, Int, Int, Int, Option, Option]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add the check the serializability of the Traverse
instance as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@@ -13,6 +13,9 @@ import scala.util.Random | |||
class OneAndTests extends CatsSuite { | |||
checkAll("OneAnd[List, Int]", OrderLaws[OneAnd[List, Int]].eqv) | |||
|
|||
checkAll("OneAnd[List, Int] with Option", TraverseTests[OneAnd[List, ?]].traverse[Int, Int, Int, Int, Option, Option]) | |||
checkAll("Functor[OneAnd[List, A]]", SerializableTests.serializable(Traverse[OneAnd[List, ?]])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super minor, but Functor should probably be replaced with Traverse for the name of the Serializable test, to reflect the check being performed.
Was very sleepy yesterday. Fixed! |
Current coverage is
|
Is there something more I have to do? |
👍 |
Great. Thanks, @notxcain! |
This PR adds
Traverse
instance forOneAnd[F, ?]
whereF: Traverse