2013-03-06 04:08:53 +01:00
|
|
|
;
|
|
|
|
|
2013-03-07 00:57:21 +01:00
|
|
|
|
2013-03-09 00:18:43 +01:00
|
|
|
(defn test_lists []
|
2013-03-06 04:15:45 +01:00
|
|
|
"NATIVE: test lists work right"
|
2013-03-09 00:18:43 +01:00
|
|
|
(assert (= [1 2 3 4] (+ [1 2] [3 4]))))
|
2013-03-08 04:52:47 +01:00
|
|
|
|
|
|
|
|
2013-03-09 00:18:43 +01:00
|
|
|
(defn test_for_loop []
|
2013-03-08 04:52:47 +01:00
|
|
|
"NATIVE: test for loops?"
|
|
|
|
(def count 0)
|
|
|
|
(for [x [1 2 3 4 5]]
|
|
|
|
(def count (+ count x)))
|
2013-03-09 00:18:43 +01:00
|
|
|
(assert (= count 15)))
|