MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_is_normal

Method test_is_normal

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

Source from the content-addressed store, hash-verified

3293 self.assertRaises(TypeError, c.is_nan, '10')
3294
3295 def test_is_normal(self):
3296 Decimal = self.decimal.Decimal
3297 Context = self.decimal.Context
3298
3299 c = Context()
3300 d = c.is_normal(Decimal(10))
3301 self.assertEqual(c.is_normal(10), d)
3302 self.assertRaises(TypeError, c.is_normal, '10')
3303
3304 def test_is_qnan(self):
3305 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected