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

Method test_is_subnormal

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

Source from the content-addressed store, hash-verified

3324 self.assertRaises(TypeError, c.is_snan, '10')
3325
3326 def test_is_subnormal(self):
3327 Decimal = self.decimal.Decimal
3328 Context = self.decimal.Context
3329
3330 c = Context()
3331 d = c.is_subnormal(Decimal(10))
3332 self.assertEqual(c.is_subnormal(10), d)
3333 self.assertRaises(TypeError, c.is_subnormal, '10')
3334
3335 def test_is_zero(self):
3336 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected