Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ test_closure
Function
test_closure
02-array-seq/lispy/py3.9/examples_test.py:150–152 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
148
(inc 99)
149
""
"
150
def
test_closure():
151
got = run(closure_src)
152
assert got == 100
153
154
closure_with_change_src =
""
"
155
(define make-counter
Callers
nothing calls this directly
Calls
1
run
Function · 0.90
Tested by
no test coverage detected