diff options
| author | Vladimir Panteleev | 2017-01-27 11:49:42 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-01-27 11:49:42 +0200 |
| commit | 9f52f67a967819916eedfe55f4ea92f659133dc5 (patch) | |
| tree | 6fdf27f7bba6c72f49671dc2baf1ef5dd7e5fa8f | |
| parent | c416b141dda77101db7555fcc05243abe988eb11 (diff) | |
| download | emacs-9f52f67a967819916eedfe55f4ea92f659133dc5.tar.gz emacs-9f52f67a967819916eedfe55f4ea92f659133dc5.zip | |
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
| -rw-r--r-- | doc/misc/ert.texi | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi index b07cb0be490..4a2c29dcb9f 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: | |||
| 551 | 551 | ||
| 552 | @lisp | 552 | @lisp |
| 553 | (ert-deftest ert-test-mismatch () | 553 | (ert-deftest ert-test-mismatch () |
| 554 | (should (eql (ert--mismatch "" "") nil)) | 554 | (should (eql (cl-mismatch "" "") nil)) |
| 555 | (should (eql (ert--mismatch "" "a") 0)) | 555 | (should (eql (cl-mismatch "" "a") 0)) |
| 556 | (should (eql (ert--mismatch "a" "a") nil)) | 556 | (should (eql (cl-mismatch "a" "a") nil)) |
| 557 | (should (eql (ert--mismatch "ab" "a") 1)) | 557 | (should (eql (cl-mismatch "ab" "a") 1)) |
| 558 | (should (eql (ert--mismatch "Aa" "aA") 0)) | 558 | (should (eql (cl-mismatch "Aa" "aA") 0)) |
| 559 | (should (eql (ert--mismatch '(a b c) '(a b d)) 2))) | 559 | (should (eql (cl-mismatch '(a b c) '(a b d)) 2))) |
| 560 | @end lisp | 560 | @end lisp |
| 561 | 561 | ||
| 562 | This test calls the function @code{ert--mismatch} several times with | 562 | This test calls the function @code{cl-mismatch} several times with |
| 563 | various combinations of arguments and compares the return value to the | 563 | various combinations of arguments and compares the return value to the |
| 564 | expected return value. (Some programmers prefer @code{(should (eql | 564 | expected return value. (Some programmers prefer @code{(should (eql |
| 565 | EXPECTED ACTUAL))} over the @code{(should (eql ACTUAL EXPECTED))} | 565 | EXPECTED ACTUAL))} over the @code{(should (eql ACTUAL EXPECTED))} |