babashka/test-resources/lib_tests/bond/test/target.cljc
Gabriel Horner 901ea41f20
Add lib tests for bond (#524)
* Add lib-tests for bond

* Mention bond and add instructions for adding libtests

* Tweak lib test to detect exception that bb throws
2020-08-11 18:07:29 +02:00

32 lines
304 B
Clojure

(ns bond.test.target)
(defn foo
[x]
(* 2 x))
(defn- private-foo
[x]
(* 2 x))
(defn foo-caller [x]
(foo x))
(defn bar
[x]
(println "bar!") (* 2 x))
(defn quux
[a b & c]
c)
(defn quuk
[a b & c]
c)
(defmacro baz
[x]
`(* ~x 2))
(def without-arglists
(fn [x]
(* 2 x)))