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

Wrong detecting overlaps for contiguous Intervals #2

Closed
ssic7i opened this issue Jul 27, 2018 · 2 comments
Closed

Wrong detecting overlaps for contiguous Intervals #2

ssic7i opened this issue Jul 27, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ssic7i
Copy link

ssic7i commented Jul 27, 2018

.overlaps working wrong when intervals are contiguous
examples:

I.closed(1, 2).overlaps(I.closed(2, 3))
True
I.closed(1, 2).overlaps(I.closedopen(2, 3))
False (should be True)
I.closed(1, 2).overlaps(I.closed(2, I.inf))
False (should be True)


I.closed(2, I.inf).overlaps(I.closed(1,2))
False (should be True)
I.closed(2, 3).overlaps(I.closed(1,2))
True
I.closedopen(2, 3).overlaps(I.closed(1,2))
False (should be True)

@AlexandreDecan
Copy link
Owner

I'm back from holidays. I'll have a look asap. This bug wasn't catch by the test suite because of the permissive flag. Sorry for that.

@AlexandreDecan AlexandreDecan added the bug Something isn't working label Jul 28, 2018
@AlexandreDecan AlexandreDecan self-assigned this Jul 28, 2018
AlexandreDecan added a commit that referenced this issue Jul 29, 2018
@AlexandreDecan
Copy link
Owner

Bug is fixed in 1.5.4, available in a few minutes on PyPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants