diff options
author | Georg Brandl <georg@python.org> | 2005-09-17 07:51:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-09-17 07:51:15 (GMT) |
commit | 9e28107ce8022a7c661b9219fb6e21a9de591b3f (patch) | |
tree | 61a01209e47e495ddde97e972ac716af08aa4a64 /Lib/test/test_complex.py | |
parent | 116f16e4ab9a7cc319ca42ae24221d203d0d8f26 (diff) | |
download | cpython-9e28107ce8022a7c661b9219fb6e21a9de591b3f.zip cpython-9e28107ce8022a7c661b9219fb6e21a9de591b3f.tar.gz cpython-9e28107ce8022a7c661b9219fb6e21a9de591b3f.tar.bz2 |
Test case for latest complexobject fix.
Diffstat (limited to 'Lib/test/test_complex.py')
-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) |