1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; * doc/misc/ert.texi (Introduction): Be more Lisp-specific.

This commit is contained in:
Sean Whitton 2025-04-27 11:59:17 +08:00
parent be4819bd57
commit b5967dda32

View file

@ -134,11 +134,11 @@ package @file{pp.el}):
;; (pp-to-string '('a 'b)) ; same as above ;; (pp-to-string '('a 'b)) ; same as above
@end lisp @end lisp
The code contained in these comments can be evaluated from time to The Lisp forms contained in these comments can be evaluated from time to
time to compare the output with the expected output. ERT formalizes time, e.g. with @kbd{C-x C-e}, to compare the output with the expected
this and introduces a common convention, which simplifies Emacs output. ERT formalizes this and introduces a common convention, which
development, since programmers no longer have to manually find and simplifies Emacs development, since programmers no longer have to
evaluate such comments. manually find and evaluate such comments.
An ERT test definition equivalent to the above comments is this: An ERT test definition equivalent to the above comments is this: