Skip to content

Commit

Permalink
Revert to using expand-assert for the assert-true/false predicates.
Browse files Browse the repository at this point in the history
This change no longer prints the arguments of failed assertions for assert-true/false.
  • Loading branch information
Thomas M. Hermann committed May 16, 2016
1 parent 1aecab9 commit 6848429
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lisp-unit.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -428,21 +428,15 @@ assertion.")

(defmacro assert-nil (form &rest extras)
"Assert whether the form is false."
(if (atom form)
`(expand-assert :result ,form ,form nil ,extras)
`(expand-t-or-f nil ,form ,extras)))
`(expand-assert :result ,form ,form nil ,extras))

(defmacro assert-false (form &rest extras)
"Assert whether the form is false."
(if (atom form)
`(expand-assert :result ,form ,form nil ,extras)
`(expand-t-or-f nil ,form ,extras)))
`(expand-assert :result ,form ,form nil ,extras))

(defmacro assert-true (form &rest extras)
"Assert whether the form is true."
(if (atom form)
`(expand-assert :result ,form ,form t ,extras)
`(expand-t-or-f t ,form ,extras)))
`(expand-assert :result ,form ,form t ,extras))

(defmacro expand-t-or-f (t-or-f form extras)
"Expand the true/false assertions to report the arguments."
Expand Down

0 comments on commit 6848429

Please sign in to comment.