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

Method test_is_snan

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

Source from the content-addressed store, hash-verified

3320 self.assertRaises(TypeError, c.is_signed, '10')
3321
3322 def test_is_snan(self):
3323 Decimal = self.decimal.Decimal
3324 Context = self.decimal.Context
3325
3326 c = Context()
3327 d = c.is_snan(Decimal(10))
3328 self.assertEqual(c.is_snan(10), d)
3329 self.assertRaises(TypeError, c.is_snan, '10')
3330
3331 def test_is_subnormal(self):
3332 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