MCPcopy Create free account
hub / github.com/python/cpython / test_minus

Method test_minus

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

Source from the content-addressed store, hash-verified

3462 self.assertRaises(TypeError, c.min_mag, 1, '2')
3463
3464 def test_minus(self):
3465 Decimal = self.decimal.Decimal
3466 Context = self.decimal.Context
3467
3468 c = Context()
3469 d = c.minus(Decimal(10))
3470 self.assertEqual(c.minus(10), d)
3471 self.assertRaises(TypeError, c.minus, '10')
3472
3473 def test_multiply(self):
3474 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected