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

Method test_minus

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

Source from the content-addressed store, hash-verified

3467 self.assertRaises(TypeError, c.min_mag, 1, '2')
3468
3469 def test_minus(self):
3470 Decimal = self.decimal.Decimal
3471 Context = self.decimal.Context
3472
3473 c = Context()
3474 d = c.minus(Decimal(10))
3475 self.assertEqual(c.minus(10), d)
3476 self.assertRaises(TypeError, c.minus, '10')
3477
3478 def test_multiply(self):
3479 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