formatting

This commit is contained in:
Gered 2014-03-04 14:42:52 -05:00
parent 0624425e61
commit 3cca389e8b

View file

@ -18,14 +18,14 @@
(is (valid-function-handler?
(deftwigfn "add" [a b]
(+ a b))))
(+ a b))))
(is (true? (function-exists? "add")))
(is (false? (function-exists? "foobar")))
(is (valid-function-handler?
(deftwigfn "add" [a b]
(+ a b))))
(+ a b))))
(is (= (render "{{add(1, 2)}}" nil)
"3")
@ -70,11 +70,11 @@
(is (valid-function-handler?
(deftwigfn "add2" [a b]
(+ a b))))
(+ a b))))
(is (true? (function-exists? "add2")))
(is (valid-function-handler?
(deftwigfn "addAll" [& numbers]
(apply + numbers))))
(apply + numbers))))
(is (true? (function-exists? "addAll")))
(is (= (render "{{add2(1, 2)}}" nil)
@ -99,11 +99,11 @@
(is (valid-function-handler?
(deftwigfn "identity" [x]
x)))
x)))
(is (true? (function-exists? "identity")))
(is (valid-function-handler?
(deftwigfn "typename" [x]
(.getName (type x)))))
(.getName (type x)))))
(is (true? (function-exists? "typename")))
; verify that the clojure function recognizes the correct types when the variable is passed via the model-map