1
1
mirror of https://github.com/kanaka/mal.git synced 2024-10-26 14:22:25 +03:00

Add outer tests to step3_env.mal

This commit is contained in:
Gavin Lewis 2015-03-14 08:49:12 -07:00
parent 86da00cc55
commit 6f58a92605

View File

@ -32,6 +32,16 @@ x
(let* (p (+ 2 3) q (+ 2 p)) (+ p q))
;=>12
;; Testing outer environment
(def! a 4)
;=>4
(let* (q 9) q)
;=>9
(let* (q 9) a)
;=>4
(let* (z 2) (let* (q 9) a))
;=>4
;;
;; -------- Optional Functionality --------