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

Method test_pos

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

Source from the content-addressed store, hash-verified

833 test(complex(-0., -0.), "(-0-0j)")
834
835 def test_pos(self):
836 self.assertEqual(+(1+6j), 1+6j)
837 self.assertEqual(+ComplexSubclass(1, 6), 1+6j)
838 self.assertIs(type(+ComplexSubclass(1, 6)), complex)
839
840 def test_neg(self):
841 self.assertEqual(-(1+6j), -1-6j)

Callers

nothing calls this directly

Calls 3

ComplexSubclassClass · 0.85
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected