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

Function test_evaluate_variable

02-array-seq/lispy/py3.9/lis_test.py:78–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76# tests for cases in evaluate
77
78def test_evaluate_variable() -> None:
79 env = Environment({'x': 10})
80 source = 'x'
81 expected = 10
82 got = evaluate(parse(source), env)
83 assert got == expected
84
85
86def test_evaluate_literal(std_env: Environment) -> None:

Callers

nothing calls this directly

Calls 3

EnvironmentClass · 0.90
evaluateFunction · 0.90
parseFunction · 0.90

Tested by

no test coverage detected