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

Method test_is_snan

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

Source from the content-addressed store, hash-verified

3315 self.assertRaises(TypeError, c.is_signed, '10')
3316
3317 def test_is_snan(self):
3318 Decimal = self.decimal.Decimal
3319 Context = self.decimal.Context
3320
3321 c = Context()
3322 d = c.is_snan(Decimal(10))
3323 self.assertEqual(c.is_snan(10), d)
3324 self.assertRaises(TypeError, c.is_snan, '10')
3325
3326 def test_is_subnormal(self):
3327 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected