Function: should-not

should-not is a macro defined in ert.el.gz.

Signature

(should-not FORM)

Documentation

Evaluate FORM. If it returns non-nil, abort the current test as failed.

Returns nil.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
(cl-defmacro should-not (form)
  "Evaluate FORM.  If it returns non-nil, abort the current test as failed.

Returns nil."
  (declare (debug t))
  (ert--expand-should `(should-not ,form) form
                      (lambda (inner-form form-description-form _value-var)
                        `(unless (not ,inner-form)
                           (ert-fail ,form-description-form)))))