Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/fluentpython/example-code-2e
/ test_gcd
Function
test_gcd
18-with-match/lispy/py3.10/examples_test.py:158–161 ·
view source on GitHub ↗
(capsys)
Source
from the content-addressed store, hash-verified
156
(display (gcd 18 45))
157
""
"
158
def
test_gcd(capsys):
159
run(gcd_src)
160
captured = capsys.readouterr()
161
assert captured.out ==
'9\n'
162
163
164
quicksort_src =
""
"
Callers
nothing calls this directly
Calls
1
run
Function · 0.90
Tested by
no test coverage detected