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")
|
||||
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
|
||||
try:
|
||||
print(pow("x", 5, 6))
|
||||
|
|
Loading…
Reference in New Issue