circuitpython/tests/float/math_factorial_intbig.py
Scott Shawcroft b057fb8a4b
codeformat
2021-04-19 22:22:44 -07:00

16 lines
288 B
Python

try:
import math
math.factorial
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit
for fun in (math.factorial,):
for x in range(-1, 30):
try:
print("%d" % fun(x))
except ValueError as e:
print("ValueError")