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

Method test_exp

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

Source from the content-addressed store, hash-verified

3226 self.assertRaises(TypeError, c.divmod, 1, '2')
3227
3228 def test_exp(self):
3229 Decimal = self.decimal.Decimal
3230 Context = self.decimal.Context
3231
3232 c = Context()
3233 d = c.exp(Decimal(10))
3234 self.assertEqual(c.exp(10), d)
3235 self.assertRaises(TypeError, c.exp, '10')
3236
3237 def test_fma(self):
3238 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected