mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-14 01:50:22 -08:00
Trivial ert.texi update for cl-lib namespace
* doc/misc/ert.texi (Introduction, The @code{should} Macro):
Refer to "cl-assert" rather than "assert".
This commit is contained in:
parent
88390adf40
commit
dd90fd1a45
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2012-10-31 Glenn Morris <rgm@gnu.org>
|
2012-10-31 Glenn Morris <rgm@gnu.org>
|
||||||
|
|
||||||
|
* ert.texi (Introduction, The @code{should} Macro):
|
||||||
|
Refer to "cl-assert" rather than "assert".
|
||||||
|
|
||||||
* cl.texi (Function Bindings): Update for cl-flet and cl-labels.
|
* cl.texi (Function Bindings): Update for cl-flet and cl-labels.
|
||||||
(Obsolete Lexical Binding): Rename section from "Lexical Bindings".
|
(Obsolete Lexical Binding): Rename section from "Lexical Bindings".
|
||||||
(Obsolete Macros): Rename section from "Obsolete Lexical Macros".
|
(Obsolete Macros): Rename section from "Obsolete Lexical Macros".
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ familiar: This example defines a test named @code{pp-test-quote} that
|
||||||
will pass if the three calls to @code{equal} all return true
|
will pass if the three calls to @code{equal} all return true
|
||||||
(non-nil).
|
(non-nil).
|
||||||
|
|
||||||
@code{should} is a macro with the same meaning as @code{assert} but
|
@code{should} is a macro with the same meaning as @code{cl-assert} but
|
||||||
better error reporting. @xref{The @code{should} Macro}.
|
better error reporting. @xref{The @code{should} Macro}.
|
||||||
|
|
||||||
Each test should have a name that describes what functionality it tests.
|
Each test should have a name that describes what functionality it tests.
|
||||||
|
|
@ -342,7 +342,7 @@ to find where a test was defined if the test was loaded from a file.
|
||||||
Test bodies can include arbitrary code; but to be useful, they need to
|
Test bodies can include arbitrary code; but to be useful, they need to
|
||||||
check whether the code being tested (or @emph{code under test})
|
check whether the code being tested (or @emph{code under test})
|
||||||
does what it is supposed to do. The macro @code{should} is similar to
|
does what it is supposed to do. The macro @code{should} is similar to
|
||||||
@code{assert} from the cl package
|
@code{cl-assert} from the cl package
|
||||||
(@pxref{Assertions,,, cl, Common Lisp Extensions}),
|
(@pxref{Assertions,,, cl, Common Lisp Extensions}),
|
||||||
but analyzes its argument form and records information that ERT can
|
but analyzes its argument form and records information that ERT can
|
||||||
display to help debugging.
|
display to help debugging.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue