Skip to content

Commit

Permalink
Add test for #28
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDecan committed May 9, 2020
1 parent d3964d9 commit e7779cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ def test_with_intervals(self):
assert P.closed(0, 1) in P.closed(-P.inf, P.inf)
assert P.closed(-P.inf, P.inf) not in P.closed(0, 1)

# https://github.com/AlexandreDecan/portion/issues/28
assert P.closed(5, 6) not in P.closed(1, 2) | P.closed(3, 4)

def test_with_unions(self):
assert P.closed(0, 1) | P.closed(2, 3) in P.closed(0, 4)
assert P.closed(0, 1) | P.closed(2, 3) in P.closed(0, 1) | P.closed(2, 3)
Expand Down

0 comments on commit e7779cc

Please sign in to comment.