circuitpython/tests/float/math_factorial_intbig.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
288 B
Python
Raw Normal View History

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