Skip to content

Fix bug in intersection - #41

Open
RadixSeven wants to merge 1 commit into
ActiveState:masterfrom
RadixSeven:patch-1
Open

Fix bug in intersection#41
RadixSeven wants to merge 1 commit into
ActiveState:masterfrom
RadixSeven:patch-1

Conversation

@RadixSeven

Copy link
Copy Markdown

Without this fix, there is an error when one interval is contained in the other.

 Interval(4, 7).intersection(Interval(5, 6))

returns

 Interval(5, 7)

But it should return

 Interval(5, 6)

Without this fix, there is an error when one interval is contained in the other.
```
Interval(4, 7).intersection(Interval(5, 6))
```
returns ```
Interval(5, 7)
```
But it should return
```
Interval(5, 6)
```
Sign up for freeto 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.

1 participant

@RadixSeven