Add fn-call test

This commit is contained in:
Michiel Borkent 2020-09-28 16:40:21 +02:00
parent c30aa61435
commit 7c39de6275
3 changed files with 8 additions and 2 deletions

View file

@ -74,6 +74,8 @@
{"name" "return-nil"}
{"name" "do-twice"
"code" "(defmacro do-twice [x] `(do ~x ~x))"}
{"name" "fn-call"
"code" "(defn fn-call [f x] (f x))"}
{"name" "reader-tag"}
;; returns thing with other tag
{"name" "other-tag"}

View file

@ -46,6 +46,8 @@
(def tagged (pod/reader-tag))
(def other-tagged (pod/other-tag))
(def fn-called (pod.test-pod/fn-call inc 2))
(require '[pod.test-pod.loaded2 :as loaded2])
(def loaded (loaded2/loaded 1))
@ -67,4 +69,5 @@
x9
tagged
other-tagged
loaded]
loaded
fn-called]

View file

@ -21,7 +21,8 @@
9
[1 2 3]
[[1] [1]]
2]
2
3]
(concat ret (repeat ::nil)))]
(if (instance? java.util.regex.Pattern expected)
(is (re-find expected actual))