Skip to content

Conversation

@bakeemawaytoys
Copy link
Contributor

… the equals, hashCode and toString methods on Natural. Also fixed the subtract method on Natural as well as the Javadoc on the Natural Semigroup for addition.

… the equals, hashCode and toString methods on Natural. Also fixed the subtract method on Natural as well as the Javadoc on the Natural Semigroup for addition.

@Override
public boolean equals(final Object that) {
return Equal.equals0(Natural.class, this, that, Equal.equal(l -> r -> l.value.equals(r.value)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last argument should be Equal.naturalEqual

@mperry
Copy link
Contributor

mperry commented Jun 15, 2016

I propose we merge this and then fix the shrinkBigInteger (#276) and improve the gen and shrink for natural in another issue (that is not yet created).

@jbgi
Copy link
Member

jbgi commented Jun 15, 2016

merged with 09b6713 with some minor cleanup (use of contramap, added missing final modifier)

@jbgi jbgi closed this Jun 15, 2016
@jbgi
Copy link
Member

jbgi commented Jun 15, 2016

@bakeemawaytoys you might want to associate the email address used for the commit (johnson.1922@osu.edu) with your github account, so that the commit is linked to your account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants