:body (lambda () (should (equal complex-list 1))))))
(let ((ert-debug-on-error nil)
messages)
- (cl-letf* (((symbol-function 'cl-print-object)
- (symbol-function 'cl-print-object))
- ((symbol-function 'message)
+ (cl-letf* (((symbol-function 'message)
(lambda (format-string &rest args)
(push (apply #'format format-string args) messages))))
- ;; don't print the ert--stats-tests vector, which would run out of
- ;; memory if previous tests have failed.
- (cl-defmethod cl-print-object ((_object vector) _stream))
(save-window-excursion
(let ((case-fold-search nil)
(ert-batch-backtrace-right-margin nil)
do
(unless found-frame
(setq found-frame (cl-search frame msg :test 'equal))))
- (should found-frame))))
- ;; ensure our temporary binding was undone.
- (should (equal (cl-prin1-to-string [a]) "[a]")))
+ (should found-frame)))))
(ert-deftest ert-test-special-operator-p ()
(should (ert--special-operator-p 'if))