Skip to content

Commit f5495f7

Browse files
committed
Add additional edge case tests for cmath.py
1 parent 1274766 commit f5495f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_cmath.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ def test_isinf(self):
516516
self.assertFalse(cmath.isinf(1j))
517517
self.assertFalse(cmath.isinf(NAN))
518518
self.assertTrue(cmath.isinf(INF))
519+
self.assertTrue(cmath.isinf(-INF))
520+
self.assertFalse(cmath.isinf(INF/INF))
519521
self.assertTrue(cmath.isinf(complex(INF, 0)))
520522
self.assertTrue(cmath.isinf(complex(0, INF)))
521523
self.assertTrue(cmath.isinf(complex(INF, INF)))

0 commit comments

Comments
 (0)