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)
```
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant