Skip to content
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 missing verification to the ComparableVerifier #3

Open
ajoz opened this issue Mar 17, 2019 · 0 comments
Open

Add missing verification to the ComparableVerifier #3

ajoz opened this issue Mar 17, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ajoz
Copy link
Member

ajoz commented Mar 17, 2019

Only basic verification was added for the case sgn(a.compareTo(b)) == -sgn(b.compareTo(a)).
There are missing two cases:

  • satisfying sgn(a.compareTo(c)) == sgn(b.compareTo(c)) => sgn(a.compareTo(b)) == 0
  • satisfying sgn(a.compareTo(b)) > 0 && sgn(b.compareTo(c)) > 0 => sgn(a.compareTo(c)) > 0
@ajoz ajoz added the enhancement New feature or request label Mar 17, 2019
@ajoz ajoz self-assigned this Mar 24, 2019
@ajoz ajoz changed the title Add missing verification Add missing verification to the ComparableVerifier Mar 21, 2020
asm0dey added a commit to asm0dey/CompareVerifier that referenced this issue Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant