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

Method test_opposite_sign

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

Source from the content-addressed store, hash-verified

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)]

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected