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

Method test_exactly_equal_both

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

Source from the content-addressed store, hash-verified

429 self.do_exactly_equal_test(Decimal("11.68"), 0, Decimal("0.01"))
430
431 def test_exactly_equal_both(self):
432 # Test that equal values are equal when both tol and rel are given.
433 for x in [41017, 16.742, -813.02, Fraction(3, 8)]:
434 self.do_exactly_equal_test(x, 0.1, 0.01)
435 D = Decimal
436 self.do_exactly_equal_test(D("7.2"), D("0.1"), D("0.01"))
437
438
439class ApproxEqualUnequalTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

do_exactly_equal_testMethod · 0.95
FractionClass · 0.90
DClass · 0.70

Tested by

no test coverage detected