From: Georg Brandl Date: Sat, 17 Sep 2005 07:51:15 +0000 (+0000) Subject: Test case for latest complexobject fix. X-Git-Tag: v2.5a0~1366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e28107ce8022a7c661b9219fb6e21a9de591b3f;p=thirdparty%2FPython%2Fcpython.git Test case for latest complexobject fix. --- diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py index 70e91c1c9e3d..0d42bd2b6868 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)