Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
""
"
143
def
test_factorial():
144
got = run(fact_src)
145
assert got == 1405006117752879898543142606244511569936384000000000
146
assert got == math.factorial(42)
147
148
149
gcd_src =
""
"
Callers
nothing calls this directly
Calls
1
run
Function · 0.90
Tested by
no test coverage detected