Skip to content

Commit b41d5d7

Browse files
Turretedmdickinson
andauthored
Add non-integral testcase to Lib/test/test_math.py
Co-authored-by: Mark Dickinson <[email protected]>
1 parent 54ad30a commit b41d5d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ def testExp2(self):
506506
self.ftest('exp2(-1)', math.exp2(-1), 0.5)
507507
self.ftest('exp2(0)', math.exp2(0), 1)
508508
self.ftest('exp2(1)', math.exp2(1), 2)
509+
self.ftest('exp2(2.3)', math.exp2(2.3), 4.924577653379665)
509510
self.assertEqual(math.exp2(INF), INF)
510511
self.assertEqual(math.exp2(NINF), 0.)
511512
self.assertTrue(math.isnan(math.exp2(NAN)))

0 commit comments

Comments
 (0)