diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-12-31 12:31:13 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-12-31 12:40:01 +0100 |
commit | 43c7e05a2acadf1ba3ff24fba1706317e347a2ac (patch) | |
tree | ba8e50470ed832489329d070ec5a6a69d53108a3 /test/lisp/emacs-lisp | |
parent | 01acecc79c39538b8ed8789afd5ef6dc8facd4f3 (diff) | |
download | emacs-43c7e05a2acadf1ba3ff24fba1706317e347a2ac.tar.gz emacs-43c7e05a2acadf1ba3ff24fba1706317e347a2ac.tar.bz2 emacs-43c7e05a2acadf1ba3ff24fba1706317e347a2ac.zip |
Fix misspelled functions in shortdoc groups
* lisp/emacs-lisp/shortdoc.el (file, list): Fix misspelled function
names: 'file-writable-p' and 'seq-reduce'.
* test/lisp/emacs-lisp/shortdoc-tests.el (subr-x): Require.
(shortdoc-all-functions-fboundp): New test.
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/shortdoc-tests.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/shortdoc-tests.el b/test/lisp/emacs-lisp/shortdoc-tests.el index 8515b9fdfb9..3938902fa73 100644 --- a/test/lisp/emacs-lisp/shortdoc-tests.el +++ b/test/lisp/emacs-lisp/shortdoc-tests.el @@ -21,6 +21,7 @@ (require 'ert) (require 'shortdoc) +(require 'subr-x) ; `string-pad' in shortdoc group needed at run time (defun shortdoc-tests--tree-contains (tree fun) "Whether TREE contains a call to FUN." @@ -44,6 +45,14 @@ (should (shortdoc-tests--tree-contains expr fun)))) (setq props (cddr props)))))))) +(ert-deftest shortdoc-all-functions-fboundp () + "Check that all functions listed in shortdoc groups are `fboundp'." + (dolist (group shortdoc--groups) + (dolist (item group) + (when (consp item) + (let ((fun (car item))) + (should (fboundp fun))))))) + (ert-deftest shortdoc-all-groups-work () "Test that all defined shortdoc groups display correctly." (dolist (group (mapcar (lambda (x) (car x)) shortdoc--groups)) |