Open IlianIliev opened 6 years ago
The current code allows the creation of an intervals where the borders are touching, which makes them unusable:
>>> 5 in IntInterval.from_string('[5, 5)') False
In addition this leads to the fact that the intersection of touching intervals is such an "empty" interval:
>>> FloatInterval.from_string('[0, 5]') & FloatInterval.from_string('(5, 15]') FloatInterval('(5.0, 5.0]')
In addition how about IntIntervals where the boundaries are not far enough e.g. IntInterval.from_string('(2, 3)')
IntInterval.from_string('(2, 3)')
The current code allows the creation of an intervals where the borders are touching, which makes them unusable:
In addition this leads to the fact that the intersection of touching intervals is such an "empty" interval: