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

Function test_factorial

02-array-seq/lispy/py3.9/examples_test.py:136–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134(! 42)
135"""
136def test_factorial():
137 got = run(fact_src)
138 assert got == 1405006117752879898543142606244511569936384000000000
139 assert got == math.factorial(42)
140
141closure_src = """
142(define make-adder

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected