From: Raymond Hettinger Date: Wed, 18 Dec 2002 16:13:16 +0000 (+0000) Subject: Expand log() tests to include long integers. X-Git-Tag: v2.3c1~2964 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72a6ddb5eedc69c67ffd03f17bc47fe35bca5ff3;p=python Expand log() tests to include long integers. --- diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 8063025d50..3a6b7fc88d 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -114,6 +114,8 @@ testit('log(1/e)', math.log(1/math.e), -1) testit('log(1)', math.log(1), 0) testit('log(e)', math.log(math.e), 1) testit('log(32,2)', math.log(32,2), 5) +testit('log(10**40, 10)', math.log(10**40, 10), 40) +testit('log(10**40, 10**20)', math.log(10**40, 10**20), 2) print 'log10' testit('log10(0.1)', math.log10(0.1), -1)