(self)
| 346 | assert a == approx(x) |
| 347 | |
| 348 | def test_opposite_sign(self): |
| 349 | examples = [(eq, 1e-100, -1e-100), (ne, 1e100, -1e100)] |
| 350 | for op, a, x in examples: |
| 351 | assert op(a, approx(x)) |
| 352 | |
| 353 | def test_zero_tolerance(self): |
| 354 | within_1e10 = [(1.1e-100, 1e-100), (-1.1e-100, -1e-100)] |