Use ,(not (not condition)) instead of ,condition.
+2004-02-19 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * lunit.el (lunit-assert): Avoid double-eval `condtion-expr'.
+ Use ,(not (not condition)) instead of ,condition.
+
2004-02-18 TAKAHASHI Kaoru <kaoru@kaisei.org>
* lunit.el (lunit-make-test-suite-from-class): Restrict test
(defmacro lunit-assert (condition-expr)
"Verify that CONDITION-EXPR returns non-nil; signal an error if not."
(let ((condition (eval condition-expr)))
- `(unless ,condition
+ `(when ,(not condition)
(signal 'lunit-failure (list ',condition-expr)))))
(luna-define-class lunit-test-printer (lunit-test-listener))