GNU bug report logs -
#25535
[PATCH] Update extant reference to ert--mismatch in documentation
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25535 in the body.
You can then email your comments to 25535 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25535
; Package
emacs
.
(Wed, 25 Jan 2017 22:00:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vladimir Panteleev <git <at> thecybershadow.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 25 Jan 2017 22:00:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The commit "Stop reimplementing a bunch of cl- functions in ert"
removed ert--mismatch from ert.el, but did not remove references to it
in the ert documentation.
* doc/misc/ert.texi (Useful Techniques when Writing Tests): Replace
'ert--mismatch' references with its cl-lib replacement, 'cl-mismatch'.
---
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 b07cb0be49..4a2c29dcb9 100644
--- a/doc/misc/ert.texi
+++ b/doc/misc/ert.texi
@@ -551,15 +551,15 @@ Useful Techniques
@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))}
--
2.11.0
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Fri, 27 Jan 2017 09:52:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vladimir Panteleev <git <at> thecybershadow.net>
:
bug acknowledged by developer.
(Fri, 27 Jan 2017 09:52:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 25535-done <at> debbugs.gnu.org (full text, mbox):
> From: Vladimir Panteleev <git <at> thecybershadow.net>
> Date: Wed, 25 Jan 2017 21:20:47 +0000
> Cc: Vladimir Panteleev <git <at> thecybershadow.net>
>
> The commit "Stop reimplementing a bunch of cl- functions in ert"
> removed ert--mismatch from ert.el, but did not remove references to it
> in the ert documentation.
>
> * doc/misc/ert.texi (Useful Techniques when Writing Tests): Replace
> 'ert--mismatch' references with its cl-lib replacement, 'cl-mismatch'.
Thanks, installed.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 24 Feb 2017 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.