Closed albertvanderhorst closed 1 week ago
@albertvanderhorst That's a good test. The first call to fx should be 12, the second 2000 (because function creation should bind the current environment and def! I created a PR that includes another env binding test here: https://github.com/kanaka/mal/pull/677 so I'm going to close this issue now.
The most straightforward and important test is missing for environments: the test whether environments are truely lexical
My implementation gave 12, 2000 of (fx) and apparently this should be 12,12 . So I have heard, but I could be mistaken. The more reason to put this test in.