tests/basics/builtin_pow3: Add tests for edge cases of pow3.

This commit is contained in:
Damien George 2017-12-19 15:44:10 +11:00
parent 374eaf5271
commit 2bfa531798
1 changed files with 6 additions and 0 deletions

View File

@ -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))