-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Logic bug #5060
Logic bug #5060
Conversation
Looks correct to me, could you add test illustrating the problem and showing that this is fixed? |
@ssured - Could you add a test to help make sure we don't accidentally regress? |
@ssured ping. |
@knownasilya do you mind adding the test for him? Would love to see this in |
@stefanpenner sure, I'll submit a PR. |
@knownasilya thank you kindly :) |
Closing in favor of PR. |
Ah, actually the other PR is just tests it looks like. |
@lukemelia i think we noticed this the other day aswell |
This has been addressed by @stefanpenner's fix. Closing. |
If compare is a function which returns
-1
,0
or1
, then1-compare()
has a result domain of2
,1
,0
, which is wrong. I did not hit this bug, just encountered it while reading the source