MCPcopy Create free account
hub / github.com/python/cpython / test_is_qnan

Method test_is_qnan

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

Source from the content-addressed store, hash-verified

3297 self.assertRaises(TypeError, c.is_normal, '10')
3298
3299 def test_is_qnan(self):
3300 Decimal = self.decimal.Decimal
3301 Context = self.decimal.Context
3302
3303 c = Context()
3304 d = c.is_qnan(Decimal(10))
3305 self.assertEqual(c.is_qnan(10), d)
3306 self.assertRaises(TypeError, c.is_qnan, '10')
3307
3308 def test_is_signed(self):
3309 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected