Function: ert--explain-format-atom
ert--explain-format-atom is a byte-compiled function defined in
ert.el.gz.
Signature
(ert--explain-format-atom X)
Documentation
Format the atom X for ert--explain-equal.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
;;; Explanation of `should' failures.
;; TODO(ohler): Rework explanations so that they are displayed in a
;; similar way to `ert-info' messages; in particular, allow text
;; buttons in explanations that give more detail or open an ediff
;; buffer. Perhaps explanations should be reported through `ert-info'
;; rather than as part of the condition.
(defun ert--explain-format-atom (x)
"Format the atom X for `ert--explain-equal'."
(pcase x
((pred characterp) (list x (format "#x%x" x) (format "?%c" x)))
((pred integerp) (list x (format "#x%x" x)))
(_ x)))