Skip to content

Instantly share code, notes, and snippets.

@jaycfields
Created October 9, 2017 21:24
Show Gist options
  • Save jaycfields/70abd263401b18809e232a876e5ef31b to your computer and use it in GitHub Desktop.
Save jaycfields/70abd263401b18809e232a876e5ef31b to your computer and use it in GitHub Desktop.
;; 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