diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2025-02-17 03:33:54 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2025-02-17 05:37:10 +0100 |
commit | 657f4658a7141708adb7f3ca594145f2df569d4c (patch) | |
tree | 9bc3286c570f9598d9c7b056cf7c9bcb3e1d880d /test/lisp/emacs-lisp/cl-extra-tests.el | |
parent | 667d011410d1ab53fb90a497eb07f0b65c933821 (diff) | |
download | emacs-657f4658a7141708adb7f3ca594145f2df569d4c.tar.gz emacs-657f4658a7141708adb7f3ca594145f2df569d4c.tar.bz2 emacs-657f4658a7141708adb7f3ca594145f2df569d4c.zip |
Prefer oddp/evenp to cl-oddp/cl-evenp
* lisp/calc/calc-ext.el (math-oddp):
* lisp/calc/calc-misc.el (math-evenp):
* lisp/calendar/todo-mode.el
(todo-adjusted-category-label-length, todo-insert-category-line)
(todo-update-categories-display):
* lisp/emacs-lisp/cl-macs.el (cl-defstruct):
* lisp/net/gnutls.el (open-gnutls-stream):
* lisp/tab-line.el (tab-line-tab-face-inactive-alternating):
* test/lisp/auth-source-tests.el
(auth-source-test-macos-keychain-search):
* test/lisp/emacs-lisp/cl-extra-tests.el (cl-extra-test-notany)
(cl-extra-test-notevery):
* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-adjoin-test):
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-collect)
(cl-macs-loop-append/nconc, cl-macs-loop-when)
(cl-macs-loop-if):
* test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-remove-test)
(cl-remove-if-test, cl-remove-if-not-test, cl-seq-delete-test)
(cl-delete-if-test, cl-delete-if-not-test)
(cl-seq-substitute-if-test, cl-seq-substitute-if-not-test)
(cl-find-if-test, cl-find-if-not-test, cl-position-if-test)
(cl-seq-count-test, cl-count-if-test, cl-count-if-not-test)
(cl-member-if-test, cl-member-if-not-test, cl-assoc-if-test)
(cl-assoc-if-not-test, cl-rassoc-if-test)
(cl-rassoc-if-not-test):
* test/src/treesit-tests.el (treesit-search-forward-predicate):
Prefer oddp/evenp to cl-oddp/cl-evenp where possible.
* lisp/calc/calc-ext.el (cl-lib):
* lisp/calc/calc-misc.el (cl-lib): Don't require.
Diffstat (limited to 'test/lisp/emacs-lisp/cl-extra-tests.el')
-rw-r--r-- | test/lisp/emacs-lisp/cl-extra-tests.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lisp/emacs-lisp/cl-extra-tests.el b/test/lisp/emacs-lisp/cl-extra-tests.el index 75533b36f29..c524f77f2bb 100644 --- a/test/lisp/emacs-lisp/cl-extra-tests.el +++ b/test/lisp/emacs-lisp/cl-extra-tests.el @@ -228,14 +228,14 @@ nil))) (ert-deftest cl-extra-test-notany () - (should (equal (cl-notany #'cl-oddp '(1 3 5)) nil)) - (should (equal (cl-notany #'cl-oddp '(2 4 6)) t)) - (should (equal (cl-notany #'cl-oddp '(1 2 3 4 5)) nil))) + (should (equal (cl-notany #'oddp '(1 3 5)) nil)) + (should (equal (cl-notany #'oddp '(2 4 6)) t)) + (should (equal (cl-notany #'oddp '(1 2 3 4 5)) nil))) (ert-deftest cl-extra-test-notevery () - (should (equal (cl-notevery #'cl-oddp '(1 3 5)) nil)) - (should (equal (cl-notevery #'cl-oddp '(2 4 6)) t)) - (should (equal (cl-notevery #'cl-oddp '(1 2 3 4 5)) t))) + (should (equal (cl-notevery #'oddp '(1 3 5)) nil)) + (should (equal (cl-notevery #'oddp '(2 4 6)) t)) + (should (equal (cl-notevery #'oddp '(1 2 3 4 5)) t))) (ert-deftest cl-extra-test-gcd () (should (equal (cl-gcd 4) 4)) |