tests/basics/builtin_pow3: Add tests for edge cases of pow3.
This commit is contained in:
parent
374eaf5271
commit
2bfa531798
|
@ -7,6 +7,12 @@ except NotImplementedError:
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
# test some edge cases
|
||||||
|
print(pow(1, 1, 1))
|
||||||
|
print(pow(0, 1, 1))
|
||||||
|
print(pow(1, 0, 1))
|
||||||
|
print(pow(1, 0, 2))
|
||||||
|
|
||||||
# 3 arg pow is defined to only work on integers
|
# 3 arg pow is defined to only work on integers
|
||||||
try:
|
try:
|
||||||
print(pow("x", 5, 6))
|
print(pow("x", 5, 6))
|
||||||
|
|
Loading…
Reference in New Issue