-
Notifications
You must be signed in to change notification settings - Fork 74
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
Test Comparable #129
Comments
That would be really useful. Even in JDK many classes are violating this: http://stackoverflow.com/questions/30152202/are-there-any-standard-java-classes-with-inconsistent-compareto-and-equals |
I agree. I'll add it for the next version. It might take a while before it's released though. I already started working on it, but I have a number of other complicated things I want to fix for this one too. |
thought I'd check in on this |
Sorry for the long radio silence. I've tried implementing this, but I ran into some problems that I didn't know how to solve. Then life intervened, you know how that goes :). Maybe you have an idea about how to fix the problem, though. Let's take BigDecimal as an example. As you know, This is fine, of course, and I could do the same thing for other well-known classes like the ones mentioned in @mkordas 's StackOverflow link. But for In other words, you will get so many false positives, that it's not really worth testing for it anymore, IMO. Maybe you see a way out of this? If you do, I'd love to hear it :)! |
I want to do this right, or not at all. Since I haven't found a good way to do this right in a very long time, I'll go ahead and close this issue. The best way to test Sorry about this. |
So sad about it :( |
It'd be a nice feature if EqualsVerifier could check that
compareTo
matches equals if an object is Comparable.I'm not sure if this would, or should be anything more than (pseudocode)
The text was updated successfully, but these errors were encountered: