Closed deadtrickster closed 8 years ago
Isn't removing the second evaluation the wrong solution? Including test in the wrapping once-only of the ok macro would be a better fix.
(defmacro ok (test &optional desc)
(with-gensyms (duration result)
(once-only (test desc)
`(with-catching-errors (:expected T :description ,desc)
(with-duration ((,duration ,result) ,test)
(test ,result t ,desc
:duration ,duration
:test-fn (lambda (x y)
(eq (not (null x)) y))
:got-form ,test))))))
well, ok
is basically is
with expected hard set to T AFAIK.