mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Test case for latest complexobject fix.
This commit is contained in:
parent
116f16e4ab
commit
9e28107ce8
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue