MCPcopy
hub / github.com/fluentpython/example-code-2e / test_newton

Function test_newton

18-with-match/lispy/py3.9/examples_test.py:204–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202(sqrt 123454321)
203"""
204def test_newton():
205 got = run(newton_src)
206 assert math.isclose(got, 11111)
207
208
209closure_src = """

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected