Skip to content

Fix Interval.Union with unbounded bounds#11

Merged
andrew merged 1 commit intomainfrom
fix-interval-union
Feb 22, 2026
Merged

Fix Interval.Union with unbounded bounds#11
andrew merged 1 commit intomainfrom
fix-interval-union

Conversation

@andrew
Copy link
Contributor

@andrew andrew commented Feb 19, 2026

When one interval had an unbounded min or max (empty string) and the other had a concrete value, the union incorrectly took the concrete value instead of staying unbounded. The union of (-inf, 2.0] and [1.0, +inf) should be (-inf, +inf), not [1.0, 2.0].

Fixes #9

When one interval had an unbounded min or max (empty string) and the
other had a concrete value, the union incorrectly took the concrete
value instead of staying unbounded. The union of (-inf, 2.0] and
[1.0, +inf) should be (-inf, +inf), not [1.0, 2.0].

Fixes #9
@andrew andrew merged commit 00c69fd into main Feb 22, 2026
2 checks passed
@andrew andrew deleted the fix-interval-union branch February 24, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interval.Union produces wrong bounds when one interval is unbounded

1 participant