Skip to content

Commit 2bfa531

Browse files
committed
tests/basics/builtin_pow3: Add tests for edge cases of pow3.
1 parent 374eaf5 commit 2bfa531

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/basics/builtin_pow3.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
print("SKIP")
88
raise SystemExit
99

10+
# test some edge cases
11+
print(pow(1, 1, 1))
12+
print(pow(0, 1, 1))
13+
print(pow(1, 0, 1))
14+
print(pow(1, 0, 2))
15+
1016
# 3 arg pow is defined to only work on integers
1117
try:
1218
print(pow("x", 5, 6))

0 commit comments

Comments
 (0)