You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests/basics/builtin_pow3: Add tests for edge cases of pow3.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user