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

Method test_next_plus

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

Source from the content-addressed store, hash-verified

3492 self.assertRaises(TypeError, c.next_minus, '10')
3493
3494 def test_next_plus(self):
3495 Decimal = self.decimal.Decimal
3496 Context = self.decimal.Context
3497
3498 c = Context()
3499 d = c.next_plus(Decimal(10))
3500 self.assertEqual(c.next_plus(10), d)
3501 self.assertRaises(TypeError, c.next_plus, '10')
3502
3503 def test_next_toward(self):
3504 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected