def test_windows_intersect_disjunct(): assert windows_intersect([((0, 6), (3, 6)), ((10, 20), (0, 6))]) == False assert windows_intersect([((0, 6), (3, 6)), ((2, 4), (1, 5)), ((5, 6), (0, 6))]) == False assert windows_intersect([((0, 6), (3, 6)), ((2, 4), (1, 3)), ((3, 6), (4, 6))]) == False
def test_windows_intersect(): assert windows_intersect([ ((0, 6), (3, 6)), ((2, 4), (1, 5)) ]) == True assert windows_intersect([ ((0, 6), (3, 6)), ((2, 4), (1, 5)), ((3, 6), (0, 6)) ]) == True
def test_windows_intersect_disjunct(): assert windows_intersect([ ((0, 6), (3, 6)), ((10, 20), (0, 6)) ]) == False assert windows_intersect([ ((0, 6), (3, 6)), ((2, 4), (1, 5)), ((5, 6), (0, 6)) ]) == False assert windows_intersect([ ((0, 6), (3, 6)), ((2, 4), (1, 3)), ((3, 6), (4, 6)) ]) == False
def test_windows_intersect_disjunct(recwarn): data = [((0, 6), (3, 6)), ((2, 4), (1, 5))] warnings.simplefilter('always') old = windows_intersect(data) assert len(recwarn) == 1 assert recwarn.pop(DeprecationWarning) new = windows.intersect(data) assert len(recwarn) == 0 assert old == new
def test_windows_intersect_disjunct(recwarn): data = [ ((0, 6), (3, 6)), ((2, 4), (1, 5))] warnings.simplefilter('always') old = windows_intersect(data) assert len(recwarn) == 1 assert recwarn.pop(DeprecationWarning) new = windows.intersect(data) assert len(recwarn) == 0 assert old == new
def test_windows_intersect(): assert windows_intersect([((0, 6), (3, 6)), ((2, 4), (1, 5))]) == True assert windows_intersect([((0, 6), (3, 6)), ((2, 4), (1, 5)), ((3, 6), (0, 6))]) == True