(self)
| 423 | assert [1.1, 2, "word"] == pytest.approx([1.1, 2, "word"]) |
| 424 | |
| 425 | def test_operator_overloading(self): |
| 426 | assert 1 == approx(1, rel=1e-6, abs=1e-12) |
| 427 | assert not (1 != approx(1, rel=1e-6, abs=1e-12)) |
| 428 | assert 10 != approx(1, rel=1e-6, abs=1e-12) |
| 429 | assert not (10 == approx(1, rel=1e-6, abs=1e-12)) |
| 430 | |
| 431 | def test_exactly_equal(self): |
| 432 | examples = [ |