]> 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:15 +0000 (07:51 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 17 Sep 2005 07:51:15 +0000 (07:51 +0000)
Lib/test/test_complex.py

index 70e91c1c9e3d4bfa169df98f44812d995ae28d4e..0d42bd2b6868ffa4bf1c67aecd214e780a05dfc2 100644 (file)
@@ -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)