diff options
-rw-r--r-- | Lib/test/test_complex.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py index 70e91c1..0d42bd2b 100644 --- a/Lib/test/test_complex.py +++ b/Lib/test/test_complex.py @@ -310,6 +310,8 @@ class ComplexTest(unittest.TestCase): self.assertEqual(repr(1+6j), '(1+6j)') self.assertEqual(repr(1-6j), '(1-6j)') + self.assertNotEqual(repr(-(1+0j)), '(-1+-0j)') + def test_neg(self): self.assertEqual(-(1+6j), -1-6j) |