Skip to content

Commit 08bfe45

Browse files
committed
Increase test coverage for fabs() function
1 parent 0a39730 commit 08bfe45

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_math.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ def testFabs(self):
514514
self.ftest('fabs(-1)', math.fabs(-1), 1)
515515
self.ftest('fabs(0)', math.fabs(0), 0)
516516
self.ftest('fabs(1)', math.fabs(1), 1)
517+
self.assertEqual(math.fabs(INF),INF)
518+
self.assertEqual(math.fabs(NINF),INF)
517519

518520
def testFloor(self):
519521
self.assertRaises(TypeError, math.floor)

0 commit comments

Comments
 (0)