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

Method test_logb

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

Source from the content-addressed store, hash-verified

3365 self.assertRaises(TypeError, c.log10, '10')
3366
3367 def test_logb(self):
3368 Decimal = self.decimal.Decimal
3369 Context = self.decimal.Context
3370
3371 c = Context()
3372 d = c.logb(Decimal(10))
3373 self.assertEqual(c.logb(10), d)
3374 self.assertRaises(TypeError, c.logb, '10')
3375
3376 def test_logical_and(self):
3377 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected