diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2017-11-13 20:44:23 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2017-11-13 20:55:36 -0500 |
| commit | edb9ab3157eb4cdb5e03e106c400b4d7b22c4455 (patch) | |
| tree | 30c75857adad22dd7aaf58f111a30ccd4541c11c /tests/test_evaluator.py | |
| parent | e4fe023a5748eff607739c8b0a1e749d2bc587a7 (diff) | |
Compile lambdas on evaluation, not on execution.
This cuts down the cost of calling a function, as it now reuses an existing continuation rather than reconstructing the continuation for each call. Tail calls are now slightly more explicit.
Diffstat (limited to 'tests/test_evaluator.py')
| -rw-r--r-- | tests/test_evaluator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_evaluator.py b/tests/test_evaluator.py index d989f85..dbccbce 100644 --- a/tests/test_evaluator.py +++ b/tests/test_evaluator.py @@ -13,6 +13,6 @@ from .programs import * def test_evaluator(program_result): program, result, bindings = program_result environment = Environment() - assert run(eval(program, environment, symbol_table, None)) == result + assert run(eval(program, symbol_table, None), environment) == result for symbol, value in bindings: assert environment[symbol] == value |
