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

Method test_nan

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

Source from the content-addressed store, hash-verified

600 self.assertFalse(approx_equal(inf, 1000))
601
602 def test_nan(self):
603 for type_ in (float, Decimal):
604 nan = type_('nan')
605 for other in (nan, type_('inf'), 1000):
606 self.assertFalse(approx_equal(nan, other))
607
608 def test_float_zeroes(self):
609 nzero = math.copysign(0.0, -1)

Callers

nothing calls this directly

Calls 2

approx_equalFunction · 0.85
assertFalseMethod · 0.80

Tested by

no test coverage detected