def test_inequalities():
    assert (Interval(1, 3) == (1, 3))
    assert ((1, 3) == Interval(1, 3))
    assert (Interval(1, 3) < (4, 6))
    assert (not (Interval(1, 3) < (3, 6)))
    assert (not (Interval(1, 3) < ((- 3), (- 1))))
    assert (Interval(1, 3) <= (3, 6))
    assert (Interval(1, 3) <= (2, 6))
    assert (Interval(1, 3) <= (1, 6))
    assert (Interval(3, 5) <= (1, 6))
    assert (not (Interval(1, 3) <= ((- 3), (- 1))))
    assert (not (Interval(3, 6) <= Interval.open(1, 6)))
    assert (Interval(1, 3) < Interval.empty())
    assert (Interval(1, 3) <= Interval.empty())
    assert (Interval(7, 9) > (4, 6))
    assert (not (Interval(7, 9) > (4, 7)))
    assert (not (Interval(7, 9) > (10, 12)))
    assert (Interval(7, 9) >= (4, 7))
    assert (Interval(7, 9) >= (4, 8))
    assert (Interval(7, 9) >= (4, 9))
    assert (not (Interval(7, 9) >= (10, 12)))
    assert (not (Interval(4, 10) >= Interval.open(4, 9)))
    assert (Interval(7, 9) > Interval.empty())
    assert (Interval(7, 9) >= Interval.empty())
def test_inequalities():
    assert (Interval(1, 3) == (1, 3))
    assert ((1, 3) == Interval(1, 3))
    assert (Interval(1, 3) < (4, 6))
    assert (not (Interval(1, 3) < (3, 6)))
    assert (not (Interval(1, 3) < ((- 3), (- 1))))
    assert (Interval(1, 3) <= (3, 6))
    assert (Interval(1, 3) <= (2, 6))
    assert (Interval(1, 3) <= (1, 6))
    assert (Interval(3, 5) <= (1, 6))
    assert (not (Interval(1, 3) <= ((- 3), (- 1))))
    assert (not (Interval(3, 6) <= Interval.open(1, 6)))
    assert (Interval(1, 3) < Interval.empty())
    assert (Interval(1, 3) <= Interval.empty())
    assert (Interval(7, 9) > (4, 6))
    assert (not (Interval(7, 9) > (4, 7)))
    assert (not (Interval(7, 9) > (10, 12)))
    assert (Interval(7, 9) >= (4, 7))
    assert (Interval(7, 9) >= (4, 8))
    assert (Interval(7, 9) >= (4, 9))
    assert (not (Interval(7, 9) >= (10, 12)))
    assert (not (Interval(4, 10) >= Interval.open(4, 9)))
    assert (Interval(7, 9) > Interval.empty())
    assert (Interval(7, 9) >= Interval.empty())