AlexandreDecan / portion

portion, a Python library providing data structure and operations for intervals.
GNU Lesser General Public License v3.0
476 stars 34 forks source link

Enclosure Calculation Bug #88

Closed Albuser closed 12 months ago

Albuser commented 12 months ago

If an atomic unit of an interval is empty, the enclosure will still consider it. For example:

first = P.open(2,3)

second = P.closed(5,6)

print((first | second).enclosure) 

returns (2,6], whereas I would expect [5,6].

Albuser commented 12 months ago

Never mind, I'm being silly and considering these as strictly integer intervals