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

Method test_approx_equal_both1

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

Source from the content-addressed store, hash-verified

568 check(approx_equal(a, b, tol=tol, rel=rel))
569
570 def test_approx_equal_both1(self):
571 # Test actual error <= both absolute and relative error.
572 self.do_check_both(7.955, 7.952, 0.004, 3.8e-4, True, True)
573 self.do_check_both(-7.387, -7.386, 0.002, 0.0002, True, True)
574
575 def test_approx_equal_both2(self):
576 # Test actual error <= absolute error but > relative error.

Callers

nothing calls this directly

Calls 1

do_check_bothMethod · 0.95

Tested by

no test coverage detected