def test_repr_contains_bound_parameter(self): assert_predicate_name_equals(interval.closed(0, 1), "closed(0, 1)")
def test_returns_false_for_exclusive_outside_value( self, value: float, boundaries: Boundaries) -> None: assert interval.closed(*boundaries)(value) is False
def test_returns_true_for_exclusive_edge_value( self, value: float, boundaries: Boundaries) -> None: assert interval.closed(*boundaries)(value) is True
def test_returns_true_for_middle_value(self) -> None: assert interval.closed(1, 3)(2) is True