-
Notifications
You must be signed in to change notification settings - Fork 10
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
Overlap with empty range incorrectly returns True #7
Labels
Comments
This is indeed a bug. PostgreSQL does:
or
|
runfalk
added a commit
that referenced
this issue
May 17, 2017
I've made a fix for this. Please test it and report back if it fixes your issue. The only changes file is |
The fix looks good to me. Thanks for the quick response! |
I'll release this fix as part of the 1.0 release. It'll probably be another week or two before that in case any other issues arise. |
1.0.0 is now released. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The overlap() method is documented as "Returns True if both ranges share any points."
The following example incorrectly prints True even though the ranges clearly do not share any points.
from spans import intrange
print intrange(20, 30).overlap(intrange(10, 10))
The text was updated successfully, but these errors were encountered: