]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve ert-test-erts-file documentation
authorStefan Kangas <stefan@marxist.se>
Sat, 9 Jul 2022 08:54:01 +0000 (10:54 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 9 Jul 2022 09:47:52 +0000 (11:47 +0200)
* lisp/emacs-lisp/ert.el (ert-test-erts-file): Improve docstring.
* doc/misc/ert.texi (erts files): Fix typo.

doc/misc/ert.texi
lisp/emacs-lisp/ert.el

index 4dccd8edcf026719f983391e532b3851fb7152e6..1b7f38daadfb2de646be8f2def252041032b07fe 100644 (file)
@@ -822,7 +822,7 @@ that's pretty difficult to read and write, especially when the text in
 question is multi-line.
 
 So ert provides a function called @code{ert-test-erts-file} that takes
-two parameters: The name of a specially-formatted @dfn{erts} file, and
+two parameters: the name of a specially-formatted @dfn{erts} file, and
 (optionally) a function that performs the transform.
 
 @findex erts-mode
index 21bee4c6d8b1d5ff198dd7a3216d275c268f8dba..49b54c2d00fb777906886341f74087776d0e1a96 100644 (file)
@@ -2880,8 +2880,14 @@ To be used in the ERT results buffer."
   nil)
 
 (defun ert-test-erts-file (file &optional transform)
-  "Parse FILE as a file containing before/after parts.
-TRANSFORM will be called to get from before to after."
+  "Parse FILE as a file containing before/after parts (an erts file).
+
+This function puts the \"before\" section of an .erts file into a
+temporary buffer, calls the TRANSFORM function, and then compares
+the result with the \"after\" section.
+
+See Info node `(ert) erts files' for more information on how to
+write erts files."
   (with-temp-buffer
     (insert-file-contents file)
     (let ((gen-specs (list (cons 'dummy t)