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

Method test_next_minus

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

Source from the content-addressed store, hash-verified

3483 self.assertRaises(TypeError, c.multiply, 1, '2')
3484
3485 def test_next_minus(self):
3486 Decimal = self.decimal.Decimal
3487 Context = self.decimal.Context
3488
3489 c = Context()
3490 d = c.next_minus(Decimal(10))
3491 self.assertEqual(c.next_minus(10), d)
3492 self.assertRaises(TypeError, c.next_minus, '10')
3493
3494 def test_next_plus(self):
3495 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected