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

Method test_ln

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

Source from the content-addressed store, hash-verified

3347 self.assertRaises(TypeError, c.is_zero, '10')
3348
3349 def test_ln(self):
3350 Decimal = self.decimal.Decimal
3351 Context = self.decimal.Context
3352
3353 c = Context()
3354 d = c.ln(Decimal(10))
3355 self.assertEqual(c.ln(10), d)
3356 self.assertRaises(TypeError, c.ln, '10')
3357
3358 def test_log10(self):
3359 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