body should contain tests that pass for all possible values
in binding. Currently picks *size* at random to test.
(defmacro for-all
"body should contain tests that pass for all possible values
in binding. Currently picks *size* at random to test."
[bindings & body]
(let [var-names (take-nth 2 bindings)]
`(dotimes [_# *size*]
(let ~bindings
;; (println ~(zipmap (map keyword var-names) var-names))
~@body))))
Comments top
No comments for for-all. Log in to add a comment.