MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_opposite_sign

Method test_opposite_sign

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

approxFunction · 0.90

Tested by

no test coverage detected