emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 9f52f67: Remove stale functions from ert manual


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 9f52f67: Remove stale functions from ert manual
Date: Fri, 27 Jan 2017 09:51:13 +0000 (UTC)

branch: emacs-25
commit 9f52f67a967819916eedfe55f4ea92f659133dc5
Author: Vladimir Panteleev <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Remove stale functions from ert manual
    
    * doc/misc/ert.texi (Useful Techniques when Writing Tests):
    Replace ert--mismatch references with its cl-lib replacement,
    cl-mismatch.
    
    Copyright-paperwork-exempt: yes
---
 doc/misc/ert.texi |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi
index b07cb0b..4a2c29d 100644
--- a/doc/misc/ert.texi
+++ b/doc/misc/ert.texi
@@ -551,15 +551,15 @@ on their environment is easy.  Such tests often look like 
this:
 
 @lisp
 (ert-deftest ert-test-mismatch ()
-  (should (eql (ert--mismatch "" "") nil))
-  (should (eql (ert--mismatch "" "a") 0))
-  (should (eql (ert--mismatch "a" "a") nil))
-  (should (eql (ert--mismatch "ab" "a") 1))
-  (should (eql (ert--mismatch "Aa" "aA") 0))
-  (should (eql (ert--mismatch '(a b c) '(a b d)) 2)))
+  (should (eql (cl-mismatch "" "") nil))
+  (should (eql (cl-mismatch "" "a") 0))
+  (should (eql (cl-mismatch "a" "a") nil))
+  (should (eql (cl-mismatch "ab" "a") 1))
+  (should (eql (cl-mismatch "Aa" "aA") 0))
+  (should (eql (cl-mismatch '(a b c) '(a b d)) 2)))
 @end lisp
 
-This test calls the function @code{ert--mismatch} several times with
+This test calls the function @code{cl-mismatch} several times with
 various combinations of arguments and compares the return value to the
 expected return value.  (Some programmers prefer @code{(should (eql
 EXPECTED ACTUAL))} over the @code{(should (eql ACTUAL EXPECTED))}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]