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.9/examples_test.py:157–160 ·
view source on GitHub ↗
(capsys)
Source
from the content-addressed store, hash-verified
155
(display (gcd 18 45))
156
""
"
157
def
test_gcd(capsys):
158
run(gcd_src)
159
captured = capsys.readouterr()
160
assert captured.out ==
'9\n'
161
162
163
quicksort_src =
""
"
Callers
nothing calls this directly
Calls
1
run
Function · 0.90
Tested by
no test coverage detected