Skip to content

Instantly share code, notes, and snippets.

@gfredericks
Created December 18, 2013 02:16
Show Gist options
  • Save gfredericks/8016290 to your computer and use it in GitHub Desktop.
Save gfredericks/8016290 to your computer and use it in GitHub Desktop.
Using simple-check with clojure.test and fixtures.
(defmacro for-all
"Like prop/for-all but runs :each fixtures around the expression."
[bindings expr]
`(prop/for-all ~bindings
((join-fixtures (::each-fixtures (meta ~*ns*)))
(fn [] ~expr))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment