We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d4446 commit d2de1f7Copy full SHA for d2de1f7
1 file changed
Lib/test/test_math.py
@@ -510,6 +510,9 @@ def testFabs(self):
510
self.ftest('fabs(-1)', math.fabs(-1), 1)
511
self.ftest('fabs(0)', math.fabs(0), 0)
512
self.ftest('fabs(1)', math.fabs(1), 1)
513
+ self.ftest('fabs(INF)', math.fabs(INF), INF)
514
+ self.ftest('fabs(NINF)', math.fabs(NINF), INF)
515
+ self.assertTrue(math.isnan(math.fabs(NAN)))
516
517
def testFloor(self):
518
self.assertRaises(TypeError, math.floor)
0 commit comments