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

Method test_log10

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

Source from the content-addressed store, hash-verified

3356 self.assertRaises(TypeError, c.ln, '10')
3357
3358 def test_log10(self):
3359 Decimal = self.decimal.Decimal
3360 Context = self.decimal.Context
3361
3362 c = Context()
3363 d = c.log10(Decimal(10))
3364 self.assertEqual(c.log10(10), d)
3365 self.assertRaises(TypeError, c.log10, '10')
3366
3367 def test_logb(self):
3368 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