Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/test/test_pow.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ def powtest(self, type):
for othertype in (int,):
Comment thread
terryjreedy marked this conversation as resolved.
Outdated
for i in list(range(-10, 0)) + list(range(1, 10)):
ii = type(i)
inv = pow(ii, -1) # inverse of ii
Comment thread
terryjreedy marked this conversation as resolved.
Outdated
for j in range(1, 11):
jj = -othertype(j)
Comment thread
terryjreedy marked this conversation as resolved.
Outdated
pow(ii, jj)
self.assertAlmostEqual(pow(ii, jj), pow(inv, -jj))

for othertype in int, float:
for i in range(1, 100):
Expand Down