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

Method test_nan

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

Source from the content-addressed store, hash-verified

992 self.check_exact_equal(x, inf)
993
994 def test_nan(self):
995 for nan in (float('nan'), Decimal('NAN'), Decimal('sNAN')):
996 x = statistics._convert(nan, type(nan))
997 self.assertTrue(_nan_equal(x, nan))
998
999 def test_invalid_input_type(self):
1000 with self.assertRaises(TypeError):

Callers

nothing calls this directly

Calls 3

DecimalClass · 0.90
_nan_equalFunction · 0.85
assertTrueMethod · 0.80

Tested by

no test coverage detected