MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / test_define

Function test_define

18-with-match/lispy/py3.10/lis_test.py:114–118  ·  view source on GitHub ↗
(std_env: Environment)

Source from the content-addressed store, hash-verified

112
113
114def test_define(std_env: Environment) -> None:
115 source = '(define answer (* 6 7))'
116 got = evaluate(parse(source), std_env)
117 assert got is None
118 assert std_env['answer'] == 42
119
120
121def test_lambda(std_env: Environment) -> None:

Callers

nothing calls this directly

Calls 2

evaluateFunction · 0.90
parseFunction · 0.90

Tested by

no test coverage detected