diff options
| author | Mattias EngdegÄrd | 2022-12-16 12:17:33 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2022-12-19 13:19:09 +0100 |
| commit | 79b1dede3444c07f943be34867bb2cdac236ab55 (patch) | |
| tree | 2a684ddb239e9faee449d904de02ffa65e2a6007 /test | |
| parent | 33af5371988e6329aa7e76ef4ae7fabb9ed72cf5 (diff) | |
| download | emacs-79b1dede3444c07f943be34867bb2cdac236ab55.tar.gz emacs-79b1dede3444c07f943be34867bb2cdac236ab55.zip | |
Use equal and member instead of eq and memq
* lisp/cedet/semantic/complete.el (semantic-displayer-show-request):
* lisp/descr-text.el (describe-char-categories):
* lisp/mh-e/mh-identity.el (mh-select-identity):
* lisp/transient.el (transient--delay-post-command)
(transient--post-command):
* lisp/vc/vc-git.el (vc-git-create-tag):
* test/lisp/emacs-lisp/cl-lib-tests.el
(cl-lib-nth-value-test-multiple-values):
* lisp/emulation/viper-cmd.el (viper-preserve-cursor-color):
Use `equal` instead of `eq` and `member` instead of `memq` where
the comparison is with literals without guaranteed identity.
In some cases this change corrects evident bugs, in others it is
mostly cosmetic.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/cl-lib-tests.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/cl-lib-tests.el b/test/lisp/emacs-lisp/cl-lib-tests.el index 4ec24e51e06..759138569e4 100644 --- a/test/lisp/emacs-lisp/cl-lib-tests.el +++ b/test/lisp/emacs-lisp/cl-lib-tests.el | |||
| @@ -404,7 +404,7 @@ | |||
| 404 | (ert-deftest cl-lib-nth-value-test-multiple-values () | 404 | (ert-deftest cl-lib-nth-value-test-multiple-values () |
| 405 | "While CL multiple values are an alias to list, these won't work." | 405 | "While CL multiple values are an alias to list, these won't work." |
| 406 | :expected-result :failed | 406 | :expected-result :failed |
| 407 | (should (eq (cl-nth-value 0 '(2 3)) '(2 3))) | 407 | (should (equal (cl-nth-value 0 '(2 3)) '(2 3))) |
| 408 | (should (= (cl-nth-value 0 1) 1)) | 408 | (should (= (cl-nth-value 0 1) 1)) |
| 409 | (should (null (cl-nth-value 1 1))) | 409 | (should (null (cl-nth-value 1 1))) |
| 410 | (should-error (cl-nth-value -1 (cl-values 2 3)) :type 'args-out-of-range) | 410 | (should-error (cl-nth-value -1 (cl-values 2 3)) :type 'args-out-of-range) |