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