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

Method test_adjusted

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

Source from the content-addressed store, hash-verified

4500class Coverage:
4501
4502 def test_adjusted(self):
4503 Decimal = self.decimal.Decimal
4504
4505 self.assertEqual(Decimal('1234e9999').adjusted(), 10002)
4506 # XXX raise?
4507 self.assertEqual(Decimal('nan').adjusted(), 0)
4508 self.assertEqual(Decimal('inf').adjusted(), 0)
4509
4510 def test_canonical(self):
4511 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 3

DecimalClass · 0.85
adjustedMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected