Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72a6ddb

Browse files
committed
Expand log() tests to include long integers.
1 parent ca2623a commit 72a6ddb

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
@@ -114,6 +114,8 @@ def testfrexp(name, (mant, exp), (emant, eexp)):
114114
testit('log(1)', math.log(1), 0)
115115
testit('log(e)', math.log(math.e), 1)
116116
testit('log(32,2)', math.log(32,2), 5)
117+
testit('log(10**40, 10)', math.log(10**40, 10), 40)
118+
testit('log(10**40, 10**20)', math.log(10**40, 10**20), 2)
117119

118120
print 'log10'
119121
testit('log10(0.1)', math.log10(0.1), -1)

0 commit comments

Comments
 (0)