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

Method test_radix

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

Source from the content-addressed store, hash-verified

4700 self.assertTrue(x.is_nan())
4701
4702 def test_radix(self):
4703 Decimal = self.decimal.Decimal
4704 getcontext = self.decimal.getcontext
4705
4706 c = getcontext()
4707 self.assertEqual(Decimal("1").radix(), 10)
4708 self.assertEqual(c.radix(), 10)
4709
4710 def test_rop(self):
4711 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 4

getcontextFunction · 0.85
DecimalClass · 0.85
assertEqualMethod · 0.45
radixMethod · 0.45

Tested by

no test coverage detected