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

Method test_exp

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

Source from the content-addressed store, hash-verified

3231 self.assertRaises(TypeError, c.divmod, 1, '2')
3232
3233 def test_exp(self):
3234 Decimal = self.decimal.Decimal
3235 Context = self.decimal.Context
3236
3237 c = Context()
3238 d = c.exp(Decimal(10))
3239 self.assertEqual(c.exp(10), d)
3240 self.assertRaises(TypeError, c.exp, '10')
3241
3242 def test_fma(self):
3243 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