]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Test case for latest complexobject fix.
authorGeorg Brandl <georg@python.org>
Sat, 17 Sep 2005 07:51:08 +0000 (07:51 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 17 Sep 2005 07:51:08 +0000 (07:51 +0000)
Lib/test/test_complex.py

index 15f4b654794e9172f7f772ca1585c5a268f4487a..57c8720671d92d5cd8f3d506c6ee868904240966 100644 (file)
@@ -288,6 +288,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)