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

Method test_is_nan

Lib/test/test_decimal.py:3281–3288  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3279 self.assertRaises(TypeError, c.is_infinite, '10')
3280
3281 def test_is_nan(self):
3282 Decimal = self.decimal.Decimal
3283 Context = self.decimal.Context
3284
3285 c = Context()
3286 d = c.is_nan(Decimal(10))
3287 self.assertEqual(c.is_nan(10), d)
3288 self.assertRaises(TypeError, c.is_nan, '10')
3289
3290 def test_is_normal(self):
3291 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

is_nanMethod · 0.95
DecimalClass · 0.85
ContextClass · 0.70
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected