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

Method test_inf

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

Source from the content-addressed store, hash-verified

986 self.check_exact_equal(x, MyDecimal("-0.9375"))
987
988 def test_inf(self):
989 for INF in (float('inf'), Decimal('inf')):
990 for inf in (INF, -INF):
991 x = statistics._convert(inf, type(inf))
992 self.check_exact_equal(x, inf)
993
994 def test_nan(self):
995 for nan in (float('nan'), Decimal('NAN'), Decimal('sNAN')):

Callers

nothing calls this directly

Calls 2

check_exact_equalMethod · 0.95
DecimalClass · 0.90

Tested by

no test coverage detected