MCPcopy Create free account
hub / github.com/python/cpython / do_exactly_unequal_test

Method do_exactly_unequal_test

Lib/test/test_statistics.py:443–446  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

441 # Test cases for unequal values, with exact equality test.
442
443 def do_exactly_unequal_test(self, x):
444 for a in (x, -x):
445 result = approx_equal(a, a+1, tol=0, rel=0)
446 self.assertFalse(result, 'inequality failure for x=%r' % a)
447
448 def test_exactly_unequal_ints(self):
449 # Test unequal int values are unequal with zero error tolerance.

Calls 2

approx_equalFunction · 0.85
assertFalseMethod · 0.80

Tested by

no test coverage detected