PS: add step3_env
[jackhill/mal.git] / tests / step2_eval.mal
CommitLineData
31690700
JM
1;; Testing evaluation of arithmetic operations
2(+ 1 2)
3;=>3
4
5(+ 5 (* 2 3))
6;=>11
7
8(- (+ 5 (* 2 3)) 3)
9;=>8
10
11(/ (- (+ 5 (* 2 3)) 3) 4)
12;=>2
13
14;; Testing evaluation within collection literals
15[1 2 (+ 1 2)]
16;=>[1 2 3]
17
18{"a" (+ 7 8)}
19;=>{"a" 15}