Test the function return-o-matic

This commit is contained in:
Paul R. Tagliamonte 2013-04-05 19:59:33 -04:00
parent 65ad7a3b87
commit 27e4772aa7

View File

@ -286,3 +286,10 @@
(defn test-mangles []
"NATIVE: test mangles"
(assert (= 2 ((fn [] (+ 1 1))))))
(defn test-fn-return []
"NATIVE: test function return"
(setv fn-test ((fn [] (fn [] (+ 1 1)))))
(assert (= (fn-test) 2)))