Macro: IS-FALSE

Documentation

Generates a pass if CONDITION returns false, generates a failure otherwise. Like IS-TRUE, and unlike IS, IS-FALSE does not inspect CONDITION to determine what reason to give it case of test failure

Source

(defmacro is-false (condition &rest reason-args)
  "Generates a pass if CONDITION returns false, generates a
  failure otherwise. Like IS-TRUE, and unlike IS, IS-FALSE does
  not inspect CONDITION to determine what reason to give it case
  of test failure"
  `(if ,condition
    (process-failure
     :reason ,(if reason-args
                  `(format nil ,@reason-args)
                  `(format nil "~S returned a true value" ',condition))
     :test-expr ',condition)
    (add-result 'test-passed :test-expr ',condition)))
Source Context