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

Duplicated empty intervals #19

Closed
AlexandreDecan opened this issue Feb 22, 2020 · 0 comments
Closed

Duplicated empty intervals #19

AlexandreDecan opened this issue Feb 22, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@AlexandreDecan
Copy link
Owner

Intervals can be provided to build new intervals. The constructor expects to receive a list of intervals or atomic intervals. If two empty atomic intervals are provided, the following assumption holds:

assert I.Interval(I.empty().to_atomic(), I.empty().to_atomic()) == I.empty()

but if two empty non-atomic intervals (i.e., non AtomicInterval instances) are provided, the equivalent assumption does not hold:

assert I.Interval(I.empty(), I.empty()) == I.empty()

The reason is that we check for emptiness only for AtomicInterval instances, and not for Interval ones.

@AlexandreDecan AlexandreDecan added the bug Something isn't working label Feb 22, 2020
AlexandreDecan added a commit that referenced this issue Feb 22, 2020
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

1 participant