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

Method test_exactly_equal_floats

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

Source from the content-addressed store, hash-verified

390 self.do_exactly_equal_test(n, 0, 0)
391
392 def test_exactly_equal_floats(self):
393 # Test that equal float values are exactly equal.
394 for x in [0.42, 1.9740, 1497.4, 23.0, 179.5, 70.0245, 36.587]:
395 self.do_exactly_equal_test(x, 0, 0)
396
397 def test_exactly_equal_fractions(self):
398 # Test that equal Fraction values are exactly equal.

Callers

nothing calls this directly

Calls 1

do_exactly_equal_testMethod · 0.95

Tested by

no test coverage detected