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

Function test_newton

18-with-match/lispy/py3.10/examples_test.py:205–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected