(self)
| 443 | assert a == approx(x) |
| 444 | |
| 445 | def test_opposite_sign(self): |
| 446 | examples = [(eq, 1e-100, -1e-100), (ne, 1e100, -1e100)] |
| 447 | for op, a, x in examples: |
| 448 | assert op(a, approx(x)) |
| 449 | |
| 450 | def test_zero_tolerance(self): |
| 451 | within_1e10 = [(1.1e-100, 1e-100), (-1.1e-100, -1e-100)] |