MCPcopy Index your code
hub / github.com/python/cpython / test_log_huge_integer

Method test_log_huge_integer

Lib/test/test_math.py:1310–1314  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

1308
1309 @support.bigmemtest(2**32, memuse=0.2)
1310 def test_log_huge_integer(self, size):
1311 v = 1 << size
1312 self.assertAlmostEqual(math.log2(v), size)
1313 self.assertAlmostEqual(math.log(v), size * 0.6931471805599453)
1314 self.assertAlmostEqual(math.log10(v), size * 0.3010299956639812)
1315
1316 def testSumProd(self):
1317 sumprod = math.sumprod

Callers

nothing calls this directly

Calls 3

assertAlmostEqualMethod · 0.45
logMethod · 0.45
log10Method · 0.45

Tested by

no test coverage detected