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

Method test_pos

Lib/test/test_complex.py:830–833  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

828 test(complex(-0., -0.), "(-0-0j)")
829
830 def test_pos(self):
831 self.assertEqual(+(1+6j), 1+6j)
832 self.assertEqual(+ComplexSubclass(1, 6), 1+6j)
833 self.assertIs(type(+ComplexSubclass(1, 6)), complex)
834
835 def test_neg(self):
836 self.assertEqual(-(1+6j), -1-6j)

Callers

nothing calls this directly

Calls 3

ComplexSubclassClass · 0.70
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected