-
-
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
add xorMonoid #521
add xorMonoid #521
Conversation
Current coverage is
|
@@ -12,6 +13,8 @@ import org.scalacheck.Arbitrary._ | |||
import scala.util.Try | |||
|
|||
class XorTests extends CatsSuite { | |||
checkAll("Xor[String, Int]", algebra.laws.GroupLaws[Xor[String, Int]].monoid) |
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.
Check Serializability
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.
I see - Xor[String, Int].monoid.serializable
in the test output. It appears serializability is checked via:
Is that sufficient or is there a reason to have the following in addition?
checkAll("Xor[String, Int]", SerializableTests.serializable(Monoid[Xor[String, Int]]))
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.
Oh you're right, algebra
includes Serializable
checks in their laws - @non confirm?
👍 |
1 similar comment
👍 |
No description provided.