(self)
| 320 | assert repr(approx(np_array)) == expected_repr_string |
| 321 | |
| 322 | def test_bool(self): |
| 323 | with pytest.raises(AssertionError) as err: |
| 324 | assert approx(1) |
| 325 | |
| 326 | assert err.match(r"approx\(\) is not supported in a boolean context") |
| 327 | |
| 328 | def test_operator_overloading(self): |
| 329 | assert 1 == approx(1, rel=1e-6, abs=1e-12) |