Test case for latest complexobject fix.
This commit is contained in:
parent
116f16e4ab
commit
9e28107ce8
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue