Created
October 9, 2017 21:24
-
-
Save jaycfields/70abd263401b18809e232a876e5ef31b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; could work | |
(expect | |
(more-of tree | |
SUCCESS (tick {:foo 41} tree {}) | |
SUCCESS (tick {:foo 41} tree {})) | |
(aidoc/compile [:test? {:key :foo :val 42}])) | |
;; but I strongly dislike putting fn calls in more. I'd probably use from-each | |
(expect SUCCESS | |
(let [tree (aidoc/compile [:test? {:key :foo :val 42}])] | |
(from-each [val [41 41]] | |
(tick {:foo val} tree {})))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment