MCPcopy Index your code
hub / github.com/python/cpython / test_cross_zero

Method test_cross_zero

Lib/test/test_statistics.py:511–513  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

509 self.do_approx_equal_abs_test(-d, delta)
510
511 def test_cross_zero(self):
512 # Test for the case of the two values having opposite signs.
513 self.assertTrue(approx_equal(1e-5, -1e-5, tol=1e-4, rel=0))
514
515 # === Relative error tests ===
516

Callers

nothing calls this directly

Calls 2

approx_equalFunction · 0.85
assertTrueMethod · 0.80

Tested by

no test coverage detected