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

Method do_exactly_equal_test

Lib/test/test_statistics.py:381–385  ·  view source on GitHub ↗
(self, x, tol, rel)

Source from the content-addressed store, hash-verified

379 # equal regardless of the error tolerances given.
380
381 def do_exactly_equal_test(self, x, tol, rel):
382 result = approx_equal(x, x, tol=tol, rel=rel)
383 self.assertTrue(result, 'equality failure for x=%r' % x)
384 result = approx_equal(-x, -x, tol=tol, rel=rel)
385 self.assertTrue(result, 'equality failure for x=%r' % -x)
386
387 def test_exactly_equal_ints(self):
388 # Test that equal int values are exactly equal.

Calls 2

approx_equalFunction · 0.85
assertTrueMethod · 0.80

Tested by

no test coverage detected