MCPcopy
hub / github.com/pytest-dev/pytest / test_operator_overloading

Method test_operator_overloading

testing/python/approx.py:425–429  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 = [

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected