MCPcopy
hub / github.com/fluentpython/example-code-2e / test_factorial

Function test_factorial

18-with-match/lispy/py3.10/examples_test.py:143–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141(! 42)
142"""
143def test_factorial():
144 got = run(fact_src)
145 assert got == 1405006117752879898543142606244511569936384000000000
146 assert got == math.factorial(42)
147
148
149gcd_src = """

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected