MCPcopy 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"""
150def test_closure():
151 got = run(closure_src)
152 assert got == 100
153
154closure_with_change_src = """
155(define make-counter

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected