Skip to content

[Bug #21185] Fix Range#overlap? with infinite range#12937

Merged
nobu merged 1 commit intoruby:masterfrom
jeromepl:master
Mar 17, 2025
Merged

[Bug #21185] Fix Range#overlap? with infinite range#12937
nobu merged 1 commit intoruby:masterfrom
jeromepl:master

Conversation

@jeromepl
Copy link
Copy Markdown
Contributor

@jeromepl jeromepl commented Mar 15, 2025

Infinite ranges, i.e. unbounded ranges, should overlap with any other range which wasn't the case in the following example: (0..3).overlap?(nil..nil)

[Bug #21185]

Similar to #11609, but adds fix for another edge case.

Infinite ranges, i.e. unbounded ranges, should overlap with any other range
which wasn't the case in the following example: (0..3).overlap?(nil..nil)
@launchable-app
Copy link
Copy Markdown

launchable-app bot commented Mar 15, 2025

All Tests passed!

✖️no tests failed ✔️61642 tests passed(2 flakes)

@nobu nobu merged commit b5cdbad into ruby:master Mar 17, 2025
76 checks passed
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.

2 participants