Skip to content

Commit

Permalink
ASSERT-TRUE now takes generalized booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
phoe committed May 5, 2020
1 parent d2bf630 commit cb6dbe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test-framework.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
(cons (or (form-contains-blanks-p (car form))
(form-contains-blanks-p (cdr form))))))

(defun notnot (x) (not (not x)))

(defvar *koan-assert-list*)

(defun internal-assert (type form code-thunk expected-thunk test)
Expand Down Expand Up @@ -154,7 +156,7 @@

(defmacro assert-true (form)
"Assert whether the form is true."
`(expand-assert :result ,form ,form t))
`(expand-assert :result ,form ,form t :test #'notnot))

;;; Run the tests

Expand Down

0 comments on commit cb6dbe4

Please sign in to comment.