예제 #1
0
 def test_repr_contains_bound_parameter(self):
     assert_predicate_name_equals(interval.open(0, 1), "open(0, 1)")
예제 #2
0
 def test_returns_true_for_inclusive_edge_value(
         self, value: float, boundaries: Boundaries) -> None:
     assert interval.open(*boundaries)(value) is True
예제 #3
0
 def test_returns_false_for_exclusive_outside_value(
         self, value: float, boundaries: Boundaries) -> None:
     assert interval.open(*boundaries)(value) is False
예제 #4
0
 def test_returns_true_for_middle_value(self) -> None:
     assert interval.open(1, 3)(2) is True