Test the function return-o-matic
This commit is contained in:
parent
65ad7a3b87
commit
27e4772aa7
@ -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)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user