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

Method test_log10

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

Source from the content-addressed store, hash-verified

3351 self.assertRaises(TypeError, c.ln, '10')
3352
3353 def test_log10(self):
3354 Decimal = self.decimal.Decimal
3355 Context = self.decimal.Context
3356
3357 c = Context()
3358 d = c.log10(Decimal(10))
3359 self.assertEqual(c.log10(10), d)
3360 self.assertRaises(TypeError, c.log10, '10')
3361
3362 def test_logb(self):
3363 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected