Skip to content

Commit c5b8583

Browse files
author
manoj
committed
Add additional test case for inf,-inf behaviour and fix spacing
1 parent 6230932 commit c5b8583

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Lib/test/test_cmath.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,10 @@ def test_complex_near_zero(self):
584584
self.assertIsNotClose(0.001-0.001j, 0.001+0.001j, abs_tol=1e-03)
585585

586586
def test_complex_special(self):
587-
self.assertIsClose(complex(INF,INF),complex(INF,INF))
588-
self.assertIsClose(complex(-INF,-INF),complex(-INF,-INF))
589-
self.assertIsNotClose(complex(NAN,NAN),complex(NAN,NAN))
587+
self.assertIsClose(complex(INF, INF), complex(INF, INF))
588+
self.assertIsClose(complex(-INF, -INF), complex(-INF, -INF))
589+
self.assertIsNotClose(complex(NAN, NAN), complex(NAN, NAN))
590+
self.assertIsNotClose(complex(INF, INF), complex(-INF, -INF))
590591
self.assertIsNotClose(INF, INF*1j)
591592
self.assertIsNotClose(INF*1j, INF)
592593
self.assertIsNotClose(INF, -INF)

0 commit comments

Comments
 (0)