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

Method test_radix

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

Source from the content-addressed store, hash-verified

4699 self.assertTrue(x.is_nan())
4700
4701 def test_radix(self):
4702 Decimal = self.decimal.Decimal
4703 getcontext = self.decimal.getcontext
4704
4705 c = getcontext()
4706 self.assertEqual(Decimal("1").radix(), 10)
4707 self.assertEqual(c.radix(), 10)
4708
4709 def test_rop(self):
4710 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