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

Method test_next_plus

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

Source from the content-addressed store, hash-verified

3497 self.assertRaises(TypeError, c.next_minus, '10')
3498
3499 def test_next_plus(self):
3500 Decimal = self.decimal.Decimal
3501 Context = self.decimal.Context
3502
3503 c = Context()
3504 d = c.next_plus(Decimal(10))
3505 self.assertEqual(c.next_plus(10), d)
3506 self.assertRaises(TypeError, c.next_plus, '10')
3507
3508 def test_next_toward(self):
3509 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