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

Method test_ln

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

Source from the content-addressed store, hash-verified

3342 self.assertRaises(TypeError, c.is_zero, '10')
3343
3344 def test_ln(self):
3345 Decimal = self.decimal.Decimal
3346 Context = self.decimal.Context
3347
3348 c = Context()
3349 d = c.ln(Decimal(10))
3350 self.assertEqual(c.ln(10), d)
3351 self.assertRaises(TypeError, c.ln, '10')
3352
3353 def test_log10(self):
3354 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected