aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Kangas2021-09-26 01:53:56 +0200
committerStefan Kangas2021-09-26 17:53:23 +0200
commit8bb28e740dd2cc8058d7833dd60b0ef9a8765c1b (patch)
tree6daad156b285e27c95d4afb3f7d0e4773032961b /test
parent4cc43449432427817400bad12e7ef722e6591a21 (diff)
downloademacs-8bb28e740dd2cc8058d7833dd60b0ef9a8765c1b.tar.gz
emacs-8bb28e740dd2cc8058d7833dd60b0ef9a8765c1b.zip
; Minor stylistic checkdoc fixes in test/**/*.el
Diffstat (limited to 'test')
-rw-r--r--test/lisp/autorevert-tests.el2
-rw-r--r--test/lisp/calc/calc-tests.el4
-rw-r--r--test/lisp/calculator-tests.el2
-rw-r--r--test/lisp/calendar/cal-french-tests.el1
-rw-r--r--test/lisp/calendar/icalendar-tests.el2
-rw-r--r--test/lisp/calendar/solar-tests.el4
-rw-r--r--test/lisp/calendar/todo-mode-tests.el2
-rw-r--r--test/lisp/cedet/semantic-utest-c.el2
-rw-r--r--test/lisp/cedet/semantic-utest-ia.el2
-rw-r--r--test/lisp/cedet/semantic-utest.el7
-rw-r--r--test/lisp/cedet/semantic/fw-tests.el2
-rw-r--r--test/lisp/comint-tests.el4
-rw-r--r--test/lisp/cus-edit-tests.el2
-rw-r--r--test/lisp/dabbrev-tests.el2
-rw-r--r--test/lisp/descr-text-tests.el2
-rw-r--r--test/lisp/dired-aux-tests.el2
-rw-r--r--test/lisp/dired-tests.el2
-rw-r--r--test/lisp/dired-x-tests.el2
-rw-r--r--test/lisp/electric-tests.el2
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el4
-rw-r--r--test/lisp/emacs-lisp/cconv-tests.el6
-rw-r--r--test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el20
-rw-r--r--test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el6
-rw-r--r--test/lisp/emacs-lisp/eieio-tests/eieio-tests.el10
-rw-r--r--test/lisp/emacs-lisp/faceup-resources/faceup-test-this-file-directory.el2
-rw-r--r--test/lisp/emacs-lisp/generator-tests.el2
-rw-r--r--test/lisp/emacs-lisp/let-alist-tests.el2
-rw-r--r--test/lisp/emacs-lisp/memory-report-tests.el2
-rw-r--r--test/lisp/emacs-lisp/nadvice-tests.el2
-rw-r--r--test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-aux.el2
-rw-r--r--test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-problem.el4
-rw-r--r--test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-aux.el4
-rw-r--r--test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-problem.el8
-rw-r--r--test/lisp/emacs-lisp/package-resources/newer-versions/simple-single-1.4.el6
-rw-r--r--test/lisp/emacs-lisp/package-resources/signed/signed-bad-1.0.el6
-rw-r--r--test/lisp/emacs-lisp/package-resources/signed/signed-good-1.0.el6
-rw-r--r--test/lisp/emacs-lisp/package-resources/simple-depend-1.0.el2
-rw-r--r--test/lisp/emacs-lisp/package-resources/simple-single-1.3.el6
-rw-r--r--test/lisp/emacs-lisp/package-resources/simple-two-depend-1.1.el2
-rw-r--r--test/lisp/emacs-lisp/package-tests.el2
-rw-r--r--test/lisp/emacs-lisp/regexp-opt-tests.el2
-rw-r--r--test/lisp/emacs-lisp/rx-tests.el4
-rw-r--r--test/lisp/emacs-lisp/shortdoc-tests.el4
-rw-r--r--test/lisp/emacs-lisp/testcover-resources/testcases.el10
-rw-r--r--test/lisp/emacs-lisp/unsafep-tests.el2
-rw-r--r--test/lisp/erc/erc-tests.el2
-rw-r--r--test/lisp/erc/erc-track-tests.el2
-rw-r--r--test/lisp/eshell/eshell-tests.el2
-rw-r--r--test/lisp/faces-resources/faces-test-dark-theme.el2
-rw-r--r--test/lisp/faces-resources/faces-test-light-theme.el2
-rw-r--r--test/lisp/faces-tests.el2
-rw-r--r--test/lisp/gnus/gnus-search-tests.el2
-rw-r--r--test/lisp/gnus/gnus-util-tests.el2
-rw-r--r--test/lisp/gnus/message-tests.el2
-rw-r--r--test/lisp/htmlfontify-tests.el2
-rw-r--r--test/lisp/ibuffer-tests.el2
-rw-r--r--test/lisp/info-xref-tests.el2
-rw-r--r--test/lisp/international/ccl-tests.el2
-rw-r--r--test/lisp/jit-lock-tests.el2
-rw-r--r--test/lisp/kmacro-tests.el2
-rw-r--r--test/lisp/mail/rmail-tests.el2
-rw-r--r--test/lisp/mail/rmailmm-tests.el2
-rw-r--r--test/lisp/mail/uudecode-tests.el4
-rw-r--r--test/lisp/net/shr-tests.el2
-rw-r--r--test/lisp/net/socks-tests.el2
-rw-r--r--test/lisp/net/tramp-tests.el2
-rw-r--r--test/lisp/newcomment-tests.el4
-rw-r--r--test/lisp/org/org-tests.el2
-rw-r--r--test/lisp/play/cookie1-tests.el2
-rw-r--r--test/lisp/progmodes/elisp-mode-tests.el36
-rw-r--r--test/lisp/progmodes/etags-tests.el2
-rw-r--r--test/lisp/progmodes/flymake-tests.el2
-rw-r--r--test/lisp/progmodes/gdb-mi-tests.el4
-rw-r--r--test/lisp/progmodes/opascal-tests.el2
-rw-r--r--test/lisp/progmodes/pascal-tests.el4
-rw-r--r--test/lisp/progmodes/sql-tests.el2
-rw-r--r--test/lisp/ps-print-tests.el2
-rw-r--r--test/lisp/saveplace-tests.el2
-rw-r--r--test/lisp/ses-tests.el2
-rw-r--r--test/lisp/shell-tests.el2
-rw-r--r--test/lisp/simple-tests.el2
-rw-r--r--test/lisp/so-long-tests/so-long-tests-helpers.el4
-rw-r--r--test/lisp/tar-mode-tests.el2
-rw-r--r--test/lisp/term/tty-colors-tests.el2
-rw-r--r--test/lisp/textmodes/dns-mode-tests.el2
-rw-r--r--test/lisp/thingatpt-tests.el4
-rw-r--r--test/lisp/time-stamp-tests.el6
-rw-r--r--test/lisp/time-tests.el2
-rw-r--r--test/lisp/timezone-tests.el2
-rw-r--r--test/lisp/url/url-parse-tests.el2
-rw-r--r--test/lisp/vc/add-log-tests.el4
-rw-r--r--test/lisp/vc/diff-mode-tests.el1
-rw-r--r--test/lisp/vc/smerge-mode-tests.el2
-rw-r--r--test/lisp/vc/vc-bzr-tests.el2
-rw-r--r--test/lisp/whitespace-tests.el2
-rw-r--r--test/lisp/xml-tests.el4
-rw-r--r--test/manual/biditest.el2
-rw-r--r--test/manual/cedet/ede-tests.el2
-rw-r--r--test/manual/cedet/semantic-tests.el2
-rw-r--r--test/manual/cedet/tests/test.el32
-rw-r--r--test/manual/etags/el-src/emacs/lisp/progmodes/etags.el2
-rw-r--r--test/manual/image-size-tests.el2
-rw-r--r--test/manual/image-transforms-tests.el2
-rw-r--r--test/manual/redisplay-testsuite.el2
-rw-r--r--test/misc/test-custom-libs.el4
-rw-r--r--test/src/alloc-tests.el2
-rw-r--r--test/src/character-tests.el2
-rw-r--r--test/src/charset-tests.el4
-rw-r--r--test/src/coding-tests.el2
-rw-r--r--test/src/comp-resources/comp-test-funcs.el14
-rw-r--r--test/src/comp-tests.el4
-rw-r--r--test/src/data-tests.el22
-rw-r--r--test/src/decompress-tests.el2
-rw-r--r--test/src/fileio-tests.el12
-rw-r--r--test/src/floatfns-tests.el4
-rw-r--r--test/src/fns-tests.el2
-rw-r--r--test/src/indent-tests.el2
-rw-r--r--test/src/inotify-tests.el2
-rw-r--r--test/src/lcms-tests.el4
-rw-r--r--test/src/marker-tests.el2
-rw-r--r--test/src/minibuf-tests.el4
-rw-r--r--test/src/process-tests.el2
-rw-r--r--test/src/regex-emacs-tests.el28
-rw-r--r--test/src/textprop-tests.el2
-rw-r--r--test/src/thread-tests.el8
-rw-r--r--test/src/timefns-tests.el2
-rw-r--r--test/src/xfaces-tests.el4
-rw-r--r--test/src/xml-tests.el2
128 files changed, 302 insertions, 209 deletions
diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el
index a04610089c0..d0c52f6103f 100644
--- a/test/lisp/autorevert-tests.el
+++ b/test/lisp/autorevert-tests.el
@@ -688,4 +688,4 @@ This expects `auto-revert--messages' to be bound by
688 (ert-run-tests-batch "^auto-revert-"))) 688 (ert-run-tests-batch "^auto-revert-")))
689 689
690(provide 'auto-revert-tests) 690(provide 'auto-revert-tests)
691;;; auto-revert-tests.el ends here 691;;; autorevert-tests.el ends here
diff --git a/test/lisp/calc/calc-tests.el b/test/lisp/calc/calc-tests.el
index 13dd228d3b3..8a78a068242 100644
--- a/test/lisp/calc/calc-tests.el
+++ b/test/lisp/calc/calc-tests.el
@@ -53,7 +53,7 @@ A and B should be calc expressions."
53 53
54(defun calc-tests-simple (fun string &rest args) 54(defun calc-tests-simple (fun string &rest args)
55 "Push STRING on the calc stack, then call FUN and return the new top. 55 "Push STRING on the calc stack, then call FUN and return the new top.
56The result is a calc (i.e., lisp) expression, not its string representation. 56The result is a calc (i.e., Lisp) expression, not its string representation.
57Also pop the entire stack afterwards. 57Also pop the entire stack afterwards.
58An existing calc stack is reused, otherwise a new one is created." 58An existing calc stack is reused, otherwise a new one is created."
59 (calc-eval string 'push) 59 (calc-eval string 'push)
@@ -448,7 +448,7 @@ An existing calc stack is reused, otherwise a new one is created."
448 ;; Generalisation for any n, integral k≥0: use falling product 448 ;; Generalisation for any n, integral k≥0: use falling product
449 (/ (apply '* (number-sequence n (- n (1- k)) -1)) 449 (/ (apply '* (number-sequence n (- n (1- k)) -1))
450 (calc-tests--fac k))) 450 (calc-tests--fac k)))
451 (t (error "case not covered")))) 451 (t (error "Case not covered"))))
452 452
453(defun calc-tests--calc-to-number (x) 453(defun calc-tests--calc-to-number (x)
454 "Convert a Calc object to a Lisp number." 454 "Convert a Calc object to a Lisp number."
diff --git a/test/lisp/calculator-tests.el b/test/lisp/calculator-tests.el
index 9551b1a4c61..f24ca97310c 100644
--- a/test/lisp/calculator-tests.el
+++ b/test/lisp/calculator-tests.el
@@ -48,4 +48,4 @@
48 (should (equal (calculator-string-to-number str) expected))))))) 48 (should (equal (calculator-string-to-number str) expected)))))))
49 49
50(provide 'calculator-tests) 50(provide 'calculator-tests)
51;; calculator-tests.el ends here 51;;; calculator-tests.el ends here
diff --git a/test/lisp/calendar/cal-french-tests.el b/test/lisp/calendar/cal-french-tests.el
index ab62c1e6fc1..1de5dea0882 100644
--- a/test/lisp/calendar/cal-french-tests.el
+++ b/test/lisp/calendar/cal-french-tests.el
@@ -111,3 +111,4 @@
111 (should (equal (calendar-french-date-string (list m d y)) str)))) 111 (should (equal (calendar-french-date-string (list m d y)) str))))
112 112
113(provide 'cal-french-tests) 113(provide 'cal-french-tests)
114;;; cal-french-tests.el ends here
diff --git a/test/lisp/calendar/icalendar-tests.el b/test/lisp/calendar/icalendar-tests.el
index de2a8917581..a1853ff3d4e 100644
--- a/test/lisp/calendar/icalendar-tests.el
+++ b/test/lisp/calendar/icalendar-tests.el
@@ -1636,7 +1636,7 @@ SUMMARY:NNN Wwwwwwww Wwwww - Aaaaaa Pppppppp rrrrrr ddd oo Nnnnnnnn 30
1636 (format-time-string "%FT%T%z" (encode-time time) 0))) 1636 (format-time-string "%FT%T%z" (encode-time time) 0)))
1637 1637
1638(defun icalendar-tests--decode-isodatetime (_ical-string) 1638(defun icalendar-tests--decode-isodatetime (_ical-string)
1639 "Test icalendar--decode-isodatetime." 1639 "Test `icalendar--decode-isodatetime'."
1640 (should (equal (icalendar-test--format "20040917T050910-0200") 1640 (should (equal (icalendar-test--format "20040917T050910-0200")
1641 "2004-09-17T03:09:10+0000")) 1641 "2004-09-17T03:09:10+0000"))
1642 (should (equal (icalendar-test--format "20040917T050910") 1642 (should (equal (icalendar-test--format "20040917T050910")
diff --git a/test/lisp/calendar/solar-tests.el b/test/lisp/calendar/solar-tests.el
index 337deb8ce9a..921be1d2d48 100644
--- a/test/lisp/calendar/solar-tests.el
+++ b/test/lisp/calendar/solar-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21(require 'solar) 23(require 'solar)
22 24
@@ -42,3 +44,5 @@
42 (should (< (abs (- sunset 17.72)) epsilon))))) 44 (should (< (abs (- sunset 17.72)) epsilon)))))
43 45
44(provide 'solar-tests) 46(provide 'solar-tests)
47
48;;; solar-tests.el ends here
diff --git a/test/lisp/calendar/todo-mode-tests.el b/test/lisp/calendar/todo-mode-tests.el
index 6fa2b9d7c35..0538368fc82 100644
--- a/test/lisp/calendar/todo-mode-tests.el
+++ b/test/lisp/calendar/todo-mode-tests.el
@@ -35,7 +35,7 @@
35 "Todo Archive mode test file.") 35 "Todo Archive mode test file.")
36 36
37(defmacro with-todo-test (&rest body) 37(defmacro with-todo-test (&rest body)
38 "Set up an isolated todo-mode test environment." 38 "Set up an isolated `todo-mode' test environment."
39 (declare (debug (body))) 39 (declare (debug (body)))
40 `(let* ((todo-test-home (make-temp-file "todo-test-home-" t)) 40 `(let* ((todo-test-home (make-temp-file "todo-test-home-" t))
41 ;; Since we change HOME, clear this to avoid a conflict 41 ;; Since we change HOME, clear this to avoid a conflict
diff --git a/test/lisp/cedet/semantic-utest-c.el b/test/lisp/cedet/semantic-utest-c.el
index d08c79cad3e..c5eb5b0ec06 100644
--- a/test/lisp/cedet/semantic-utest-c.el
+++ b/test/lisp/cedet/semantic-utest-c.el
@@ -60,7 +60,7 @@
60 (semantic-fetch-tags)))) 60 (semantic-fetch-tags))))
61 (when (or (not tags-expected) (not tags-actual)) 61 (when (or (not tags-expected) (not tags-actual))
62 (message "Tried to find test files in: %s" semantic-utest-c-test-directory) 62 (message "Tried to find test files in: %s" semantic-utest-c-test-directory)
63 (error "Failed: Discovered no tags in test files or test file not found.")) 63 (error "Failed: Discovered no tags in test files or test file not found"))
64 64
65 ;; Now that we have the tags, compare them for SPP accuracy. 65 ;; Now that we have the tags, compare them for SPP accuracy.
66 (dolist (tag tags-actual) 66 (dolist (tag tags-actual)
diff --git a/test/lisp/cedet/semantic-utest-ia.el b/test/lisp/cedet/semantic-utest-ia.el
index 122c431d472..6ea4ca1a16a 100644
--- a/test/lisp/cedet/semantic-utest-ia.el
+++ b/test/lisp/cedet/semantic-utest-ia.el
@@ -489,4 +489,4 @@ tag that contains point, and return that."
489 489
490(provide 'semantic-ia-utest) 490(provide 'semantic-ia-utest)
491 491
492;;; semantic-ia-utest.el ends here 492;;; semantic-utest-ia.el ends here
diff --git a/test/lisp/cedet/semantic-utest.el b/test/lisp/cedet/semantic-utest.el
index 172ab62f895..3e4cfb0f0cb 100644
--- a/test/lisp/cedet/semantic-utest.el
+++ b/test/lisp/cedet/semantic-utest.el
@@ -29,6 +29,8 @@
29(require 'cedet) 29(require 'cedet)
30(require 'semantic) 30(require 'semantic)
31 31
32;;; Code:
33
32(defvar cedet-utest-directory 34(defvar cedet-utest-directory
33 (let* ((C (file-name-directory (locate-library "cedet"))) 35 (let* ((C (file-name-directory (locate-library "cedet")))
34 (D (expand-file-name "../../test/manual/cedet/" C))) 36 (D (expand-file-name "../../test/manual/cedet/" C)))
@@ -103,7 +105,7 @@ int calc_sv(int);
103(defvar semantic-utest-C-filename-h 105(defvar semantic-utest-C-filename-h
104 (concat (file-name-sans-extension semantic-utest-C-filename) 106 (concat (file-name-sans-extension semantic-utest-C-filename)
105 ".h") 107 ".h")
106 "Header file filename for C") 108 "Header file filename for C.")
107 109
108 110
109(defvar semantic-utest-C-name-contents 111(defvar semantic-utest-C-name-contents
@@ -424,8 +426,7 @@ class aClass {
424 nil 426 nil
425 (overlay 135 262 "phptest.php")) 427 (overlay 135 262 "phptest.php"))
426 ) 428 )
427 "Expected results from the PHP Unit test" 429 "Expected results from the PHP Unit test.")
428 )
429 430
430;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 431;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
431;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 432;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diff --git a/test/lisp/cedet/semantic/fw-tests.el b/test/lisp/cedet/semantic/fw-tests.el
index 7b1cd21bd1b..6a5f3c85fc6 100644
--- a/test/lisp/cedet/semantic/fw-tests.el
+++ b/test/lisp/cedet/semantic/fw-tests.el
@@ -42,4 +42,4 @@
42 ;; retrieve cached data 42 ;; retrieve cached data
43 (should (equal (semantic-get-cache-data 'moose) data))))) 43 (should (equal (semantic-get-cache-data 'moose) data)))))
44 44
45;;; gw-tests.el ends here 45;;; fw-tests.el ends here
diff --git a/test/lisp/comint-tests.el b/test/lisp/comint-tests.el
index 8a9a41f452f..19d0cca88c8 100644
--- a/test/lisp/comint-tests.el
+++ b/test/lisp/comint-tests.el
@@ -1,4 +1,4 @@
1;;; comint-tests.el -*- lexical-binding:t -*- 1;;; comint-tests.el --- Tests for comint.el -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 2010-2021 Free Software Foundation, Inc. 3;; Copyright (C) 2010-2021 Free Software Foundation, Inc.
4 4
@@ -94,4 +94,4 @@ password flow if it returns a nil value."
94;; no-byte-compile: t 94;; no-byte-compile: t
95;; End: 95;; End:
96 96
97;;; comint-testsuite.el ends here 97;;; comint-tests.el ends here
diff --git a/test/lisp/cus-edit-tests.el b/test/lisp/cus-edit-tests.el
index 97b3349000c..f7d52834370 100644
--- a/test/lisp/cus-edit-tests.el
+++ b/test/lisp/cus-edit-tests.el
@@ -37,7 +37,7 @@
37 37
38;;;; showing/hiding obsolete options 38;;;; showing/hiding obsolete options
39 39
40(defgroup cus-edit-tests nil "test" 40(defgroup cus-edit-tests nil "Test."
41 :group 'test-group) 41 :group 'test-group)
42 42
43(defcustom cus-edit-tests--obsolete-option-tag nil 43(defcustom cus-edit-tests--obsolete-option-tag nil
diff --git a/test/lisp/dabbrev-tests.el b/test/lisp/dabbrev-tests.el
index 0b20dcf9213..e4b78373915 100644
--- a/test/lisp/dabbrev-tests.el
+++ b/test/lisp/dabbrev-tests.el
@@ -70,3 +70,5 @@ multiple expansions."
70 ;; C-u C-u C-M-/ 70 ;; C-u C-u C-M-/
71 (execute-kbd-macro [21 21 201326639])) 71 (execute-kbd-macro [21 21 201326639]))
72 (should (string= (buffer-string) "abc\na"))))) 72 (should (string= (buffer-string) "abc\na")))))
73
74;;; dabbrev-tests.el ends here
diff --git a/test/lisp/descr-text-tests.el b/test/lisp/descr-text-tests.el
index 2052dc0e38c..715fafa44c3 100644
--- a/test/lisp/descr-text-tests.el
+++ b/test/lisp/descr-text-tests.el
@@ -91,4 +91,4 @@
91 91
92(provide 'descr-text-test) 92(provide 'descr-text-test)
93 93
94;;; descr-text-test.el ends here 94;;; descr-text-tests.el ends here
diff --git a/test/lisp/dired-aux-tests.el b/test/lisp/dired-aux-tests.el
index 7f1743f88d7..d5940ed8ca7 100644
--- a/test/lisp/dired-aux-tests.el
+++ b/test/lisp/dired-aux-tests.el
@@ -159,4 +159,4 @@
159 (dired-test--check-highlighting (nth 0 lines) '(8)))) 159 (dired-test--check-highlighting (nth 0 lines) '(8))))
160 160
161(provide 'dired-aux-tests) 161(provide 'dired-aux-tests)
162;; dired-aux-tests.el ends here 162;;; dired-aux-tests.el ends here
diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el
index aac78c64c69..83f7dc3cac7 100644
--- a/test/lisp/dired-tests.el
+++ b/test/lisp/dired-tests.el
@@ -518,4 +518,4 @@
518 (delete-directory testdir t))))) 518 (delete-directory testdir t)))))
519 519
520(provide 'dired-tests) 520(provide 'dired-tests)
521;; dired-tests.el ends here 521;;; dired-tests.el ends here
diff --git a/test/lisp/dired-x-tests.el b/test/lisp/dired-x-tests.el
index 003923d60fa..d00815e543c 100644
--- a/test/lisp/dired-x-tests.el
+++ b/test/lisp/dired-x-tests.el
@@ -63,4 +63,4 @@
63 nil)))) 63 nil))))
64 64
65(provide 'dired-x-tests) 65(provide 'dired-x-tests)
66;; dired-x-tests.el ends here 66;;; dired-x-tests.el ends here
diff --git a/test/lisp/electric-tests.el b/test/lisp/electric-tests.el
index 46bcbfce307..4e7cbf5419b 100644
--- a/test/lisp/electric-tests.el
+++ b/test/lisp/electric-tests.el
@@ -871,7 +871,7 @@ baz\"\""
871 (local-set-key (vector key) 'self-insert-command))) 871 (local-set-key (vector key) 'self-insert-command)))
872 872
873(defun electric-layout-for-c-style-du-jour (inserted) 873(defun electric-layout-for-c-style-du-jour (inserted)
874 "A function to use in `electric-layout-rules'" 874 "A function to use in `electric-layout-rules'."
875 (when (memq inserted '(?\{ ?\})) 875 (when (memq inserted '(?\{ ?\}))
876 (save-excursion 876 (save-excursion
877 (backward-char 2) (c-point-syntax) (forward-char) ; silly, but needed 877 (backward-char 2) (c-point-syntax) (forward-char) ; silly, but needed
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index 14df39bfd77..448c7be6219 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -1,4 +1,4 @@
1;;; bytecomp-tests.el -*- lexical-binding:t -*- 1;;; bytecomp-tests.el --- Tests for bytecomp.el -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 2008-2021 Free Software Foundation, Inc. 3;; Copyright (C) 2008-2021 Free Software Foundation, Inc.
4 4
@@ -1498,4 +1498,4 @@ EXPECTED-POINT BINDINGS (MODES \\='\\='(ruby-mode js-mode python-mode)) \
1498;; End: 1498;; End:
1499 1499
1500(provide 'bytecomp-tests) 1500(provide 'bytecomp-tests)
1501;; bytecomp-tests.el ends here. 1501;;; bytecomp-tests.el ends here
diff --git a/test/lisp/emacs-lisp/cconv-tests.el b/test/lisp/emacs-lisp/cconv-tests.el
index 5aeed0cc155..4290571735e 100644
--- a/test/lisp/emacs-lisp/cconv-tests.el
+++ b/test/lisp/emacs-lisp/cconv-tests.el
@@ -1,4 +1,4 @@
1;;; cconv-tests.el -*- lexical-binding: t -*- 1;;; cconv-tests.el --- Tests for cconv.el -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 2018-2021 Free Software Foundation, Inc. 3;; Copyright (C) 2018-2021 Free Software Foundation, Inc.
4 4
@@ -19,6 +19,8 @@
19 19
20;;; Commentary: 20;;; Commentary:
21 21
22;;; Code:
23
22(require 'ert) 24(require 'ert)
23(require 'cl-lib) 25(require 'cl-lib)
24 26
@@ -204,4 +206,4 @@
204 42))) 206 42)))
205 207
206(provide 'cconv-tests) 208(provide 'cconv-tests)
207;; cconv-tests.el ends here. 209;;; cconv-tests.el ends here
diff --git a/test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el b/test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el
index 9f9bb73133c..d1da066dc45 100644
--- a/test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el
+++ b/test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el
@@ -22,22 +22,22 @@
22 22
23;;; Commentary: 23;;; Commentary:
24;; 24;;
25;; Test method invocation order. From the common lisp reference 25;; Test method invocation order. From the Common Lisp Reference
26;; manual: 26;; Manual:
27;; 27;;
28;; QUOTE: 28;; QUOTE:
29;; - All the :before methods are called, in most-specific-first 29;; - All the :before methods are called, in most-specific-first
30;; order. Their values are ignored. An error is signaled if 30;; order. Their values are ignored. An error is signaled if
31;; call-next-method is used in a :before method. 31;; call-next-method is used in a :before method.
32;; 32;;
33;; - The most specific primary method is called. Inside the body of a 33;; - The most specific primary method is called. Inside the body of a
34;; primary method, call-next-method may be used to call the next 34;; primary method, call-next-method may be used to call the next
35;; most specific primary method. When that method returns, the 35;; most specific primary method. When that method returns, the
36;; previous primary method can execute more code, perhaps based on 36;; previous primary method can execute more code, perhaps based on
37;; the returned value or values. The generic function no-next-method 37;; the returned value or values. The generic function no-next-method
38;; is invoked if call-next-method is used and there are no more 38;; is invoked if call-next-method is used and there are no more
39;; applicable primary methods. The function next-method-p may be 39;; applicable primary methods. The function next-method-p may be
40;; used to determine whether a next method exists. If 40;; used to determine whether a next method exists. If
41;; call-next-method is not used, only the most specific primary 41;; call-next-method is not used, only the most specific primary
42;; method is called. 42;; method is called.
43;; 43;;
@@ -46,12 +46,14 @@
46;; call-next-method is used in a :after method. 46;; call-next-method is used in a :after method.
47;; 47;;
48;; 48;;
49;; Also test behavior of `call-next-method'. From clos.org: 49;; Also test behavior of `call-next-method'. From clos.org:
50;; 50;;
51;; QUOTE: 51;; QUOTE:
52;; When call-next-method is called with no arguments, it passes the 52;; When call-next-method is called with no arguments, it passes the
53;; current method's original arguments to the next method. 53;; current method's original arguments to the next method.
54 54
55;;; Code:
56
55(require 'eieio) 57(require 'eieio)
56(require 'ert) 58(require 'ert)
57 59
@@ -403,3 +405,5 @@
403 (should (equal (eieio-test--1 (make-instance 'CNM-2) 5) 405 (should (equal (eieio-test--1 (make-instance 'CNM-2) 5)
404 '("CNM-1-1" "CNM-1-2" "CNM-0" 7 5))) 406 '("CNM-1-1" "CNM-1-2" "CNM-0" 7 5)))
405 (should (equal (eieio-test--1 'CNM-2 6) '("subclass CNM-1-2" CNM-2 6)))) 407 (should (equal (eieio-test--1 'CNM-2 6) '("subclass CNM-1-2" CNM-2 6))))
408
409;;; eieio-test-methodinvoke.el ends here
diff --git a/test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el b/test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
index ddbef02c35a..fd044ff3734 100644
--- a/test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
+++ b/test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
@@ -165,9 +165,9 @@ Assume SLOTVALUE is a symbol of some sort."
165 ((slot1 :initarg :slot1 165 ((slot1 :initarg :slot1
166 :initform 1) 166 :initform 1)
167 (slot2 :initform 2)) 167 (slot2 :initform 2))
168 "Class for testing persistent saving of an object that isn't 168 "Class for testing persistent saving of an object that isn't persistent.
169persistent. This class is instead used as a slot value in a 169This class is instead used as a slot value in a persistent
170persistent class.") 170class.")
171 171
172(defclass persistent-with-objs-slot (eieio-persistent) 172(defclass persistent-with-objs-slot (eieio-persistent)
173 ((pnp :initarg :pnp 173 ((pnp :initarg :pnp
diff --git a/test/lisp/emacs-lisp/eieio-tests/eieio-tests.el b/test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
index 3ec42343443..9eb7fb02230 100644
--- a/test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
+++ b/test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
@@ -48,13 +48,13 @@
48 :type (or null class-a) 48 :type (or null class-a)
49 :documentation "Test self referencing types.") 49 :documentation "Test self referencing types.")
50 ) 50 )
51 "Class A") 51 "Class A.")
52 52
53(defclass class-b () 53(defclass class-b ()
54 ((land :initform "Sc" 54 ((land :initform "Sc"
55 :type string 55 :type string
56 :documentation "Detail about land.")) 56 :documentation "Detail about land."))
57 "Class B") 57 "Class B.")
58 58
59(defclass class-ab (class-a class-b) 59(defclass class-ab (class-a class-b)
60 ((amphibian :initform "frog" 60 ((amphibian :initform "frog"
@@ -160,7 +160,7 @@
160 ;; error 160 ;; error
161 (should-error (abstract-class))) 161 (should-error (abstract-class)))
162 162
163(defgeneric generic1 () "First generic function") 163(defgeneric generic1 () "First generic function.")
164 164
165(ert-deftest eieio-test-03-generics () 165(ert-deftest eieio-test-03-generics ()
166 (defun anormalfunction () "A plain function for error testing." nil) 166 (defun anormalfunction () "A plain function for error testing." nil)
@@ -901,12 +901,12 @@ Subclasses to override slot attributes.")
901 901
902(defclass opt-test1 () 902(defclass opt-test1 ()
903 () 903 ()
904 "Abstract base class" 904 "Abstract base class."
905 :abstract t) 905 :abstract t)
906 906
907(defclass opt-test2 (opt-test1) 907(defclass opt-test2 (opt-test1)
908 () 908 ()
909 "Instantiable child") 909 "Instantiable child.")
910 910
911(ert-deftest eieio-test-36-build-class-alist () 911(ert-deftest eieio-test-36-build-class-alist ()
912 (should (= (length (eieio-build-class-alist 'opt-test1 nil)) 2)) 912 (should (= (length (eieio-build-class-alist 'opt-test1 nil)) 2))
diff --git a/test/lisp/emacs-lisp/faceup-resources/faceup-test-this-file-directory.el b/test/lisp/emacs-lisp/faceup-resources/faceup-test-this-file-directory.el
index 3303e7b178d..9fe5fe9218d 100644
--- a/test/lisp/emacs-lisp/faceup-resources/faceup-test-this-file-directory.el
+++ b/test/lisp/emacs-lisp/faceup-resources/faceup-test-this-file-directory.el
@@ -22,7 +22,7 @@
22 22
23;;; Commentary: 23;;; Commentary:
24 24
25;; Support file for `faceup-test-basics.el'. This file is used to test 25;; Support file for `faceup-test-basics.el'. This file is used to test
26;; `faceup-this-file-directory' in various contexts. 26;; `faceup-this-file-directory' in various contexts.
27 27
28;;; Code: 28;;; Code:
diff --git a/test/lisp/emacs-lisp/generator-tests.el b/test/lisp/emacs-lisp/generator-tests.el
index a1b9f64fdb1..c81d3d09e7d 100644
--- a/test/lisp/emacs-lisp/generator-tests.el
+++ b/test/lisp/emacs-lisp/generator-tests.el
@@ -271,7 +271,7 @@ identical output."
271 (unwind-protect 271 (unwind-protect
272 (progn 272 (progn
273 (iter-yield 1) 273 (iter-yield 1)
274 (error "test") 274 (error "Test")
275 (iter-yield 2)) 275 (iter-yield 2))
276 (cl-incf nr-unwound)))))) 276 (cl-incf nr-unwound))))))
277 (should (equal (iter-next iter) 1)) 277 (should (equal (iter-next iter) 1))
diff --git a/test/lisp/emacs-lisp/let-alist-tests.el b/test/lisp/emacs-lisp/let-alist-tests.el
index d856696da24..88e689c80b8 100644
--- a/test/lisp/emacs-lisp/let-alist-tests.el
+++ b/test/lisp/emacs-lisp/let-alist-tests.el
@@ -100,4 +100,4 @@ See Bug#24641."
100 `[,(+ .a) ,(+ .a .b .b)]) 100 `[,(+ .a) ,(+ .a .b .b)])
101 [1 5]))) 101 [1 5])))
102 102
103;;; let-alist.el ends here 103;;; let-alist-tests.el ends here
diff --git a/test/lisp/emacs-lisp/memory-report-tests.el b/test/lisp/emacs-lisp/memory-report-tests.el
index e352dd165f3..d37f09b34f2 100644
--- a/test/lisp/emacs-lisp/memory-report-tests.el
+++ b/test/lisp/emacs-lisp/memory-report-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21(require 'memory-report) 23(require 'memory-report)
22 24
diff --git a/test/lisp/emacs-lisp/nadvice-tests.el b/test/lisp/emacs-lisp/nadvice-tests.el
index 358d9025ad5..ee33bb0fa40 100644
--- a/test/lisp/emacs-lisp/nadvice-tests.el
+++ b/test/lisp/emacs-lisp/nadvice-tests.el
@@ -208,4 +208,4 @@ function being an around advice."
208;; no-byte-compile: t 208;; no-byte-compile: t
209;; End: 209;; End:
210 210
211;;; advice-tests.el ends here. 211;;; nadvice-tests.el ends here
diff --git a/test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-aux.el b/test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-aux.el
index f43232224af..ad20a3507a6 100644
--- a/test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-aux.el
+++ b/test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-aux.el
@@ -5,7 +5,7 @@
5;;; Code: 5;;; Code:
6 6
7(defun macro-aux-1 ( &rest forms) 7(defun macro-aux-1 ( &rest forms)
8 "Description" 8 "Description."
9 `(progn ,@forms)) 9 `(progn ,@forms))
10 10
11(provide 'macro-aux) 11(provide 'macro-aux)
diff --git a/test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-problem.el b/test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-problem.el
index 0533b1bd9c4..6e5e54e54fd 100644
--- a/test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-problem.el
+++ b/test/lisp/emacs-lisp/package-resources/macro-problem-package-1.0/macro-problem.el
@@ -9,11 +9,11 @@
9(require 'macro-aux) 9(require 'macro-aux)
10 10
11(defmacro macro-problem-1 ( &rest forms) 11(defmacro macro-problem-1 ( &rest forms)
12 "Description" 12 "Description."
13 `(progn ,@forms)) 13 `(progn ,@forms))
14 14
15(defun macro-problem-func () 15(defun macro-problem-func ()
16 "" 16 "Description."
17 (macro-problem-1 'a 'b) 17 (macro-problem-1 'a 'b)
18 (macro-aux-1 'a 'b)) 18 (macro-aux-1 'a 'b))
19 19
diff --git a/test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-aux.el b/test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-aux.el
index 6a55a40e3b4..814d77183ab 100644
--- a/test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-aux.el
+++ b/test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-aux.el
@@ -5,11 +5,11 @@
5;;; Code: 5;;; Code:
6 6
7(defmacro macro-aux-1 ( &rest forms) 7(defmacro macro-aux-1 ( &rest forms)
8 "Description" 8 "Description."
9 `(progn ,@forms)) 9 `(progn ,@forms))
10 10
11(defmacro macro-aux-3 ( &rest _) 11(defmacro macro-aux-3 ( &rest _)
12 "Description" 12 "Description."
13 90) 13 90)
14 14
15(provide 'macro-aux) 15(provide 'macro-aux)
diff --git a/test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-problem.el b/test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-problem.el
index cad4ed93f19..aef5eda7c6c 100644
--- a/test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-problem.el
+++ b/test/lisp/emacs-lisp/package-resources/macro-problem-package-2.0/macro-problem.el
@@ -9,21 +9,21 @@
9(require 'macro-aux) 9(require 'macro-aux)
10 10
11(defmacro macro-problem-1 ( &rest forms) 11(defmacro macro-problem-1 ( &rest forms)
12 "Description" 12 "Description."
13 `(progn ,(cadr (car forms)))) 13 `(progn ,(cadr (car forms))))
14 14
15 15
16(defun macro-problem-func () 16(defun macro-problem-func ()
17 "" 17 "Description."
18 (list (macro-problem-1 '1 'b) 18 (list (macro-problem-1 '1 'b)
19 (macro-aux-1 'a 'b))) 19 (macro-aux-1 'a 'b)))
20 20
21(defmacro macro-problem-3 (&rest _) 21(defmacro macro-problem-3 (&rest _)
22 "Description" 22 "Description."
23 10) 23 10)
24 24
25(defun macro-problem-10-and-90 () 25(defun macro-problem-10-and-90 ()
26 "" 26 "Description."
27 (list (macro-problem-3 haha) (macro-aux-3 hehe))) 27 (list (macro-problem-3 haha) (macro-aux-3 hehe)))
28 28
29(provide 'macro-problem) 29(provide 'macro-problem)
diff --git a/test/lisp/emacs-lisp/package-resources/newer-versions/simple-single-1.4.el b/test/lisp/emacs-lisp/package-resources/newer-versions/simple-single-1.4.el
index 301993deb30..be6bedf8a1c 100644
--- a/test/lisp/emacs-lisp/package-resources/newer-versions/simple-single-1.4.el
+++ b/test/lisp/emacs-lisp/package-resources/newer-versions/simple-single-1.4.el
@@ -7,14 +7,14 @@
7;;; Commentary: 7;;; Commentary:
8 8
9;; This package provides a minor mode to frobnicate and/or bifurcate 9;; This package provides a minor mode to frobnicate and/or bifurcate
10;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly" 10;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
11;; and all your dreams will come true. 11;; and all your dreams will come true.
12;; 12;;
13;; This is a new, updated version. 13;; This is a new, updated version.
14 14
15;;; Code: 15;;; Code:
16 16
17(defgroup simple-single nil "Simply a file" 17(defgroup simple-single nil "Simply a file."
18 :group 'lisp) 18 :group 'lisp)
19 19
20(defcustom simple-single-super-sunday nil 20(defcustom simple-single-super-sunday nil
@@ -29,7 +29,7 @@ Default changed to nil."
29 29
30;;;###autoload 30;;;###autoload
31(define-minor-mode simple-single-mode 31(define-minor-mode simple-single-mode
32 "It does good things to stuff") 32 "It does good things to stuff.")
33 33
34(provide 'simple-single) 34(provide 'simple-single)
35 35
diff --git a/test/lisp/emacs-lisp/package-resources/signed/signed-bad-1.0.el b/test/lisp/emacs-lisp/package-resources/signed/signed-bad-1.0.el
index ff070c6526f..781077251e9 100644
--- a/test/lisp/emacs-lisp/package-resources/signed/signed-bad-1.0.el
+++ b/test/lisp/emacs-lisp/package-resources/signed/signed-bad-1.0.el
@@ -8,12 +8,12 @@
8;;; Commentary: 8;;; Commentary:
9 9
10;; This package provides a minor mode to frobnicate and/or bifurcate 10;; This package provides a minor mode to frobnicate and/or bifurcate
11;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly" 11;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
12;; and all your dreams will come true. 12;; and all your dreams will come true.
13 13
14;;; Code: 14;;; Code:
15 15
16(defgroup signed-bad nil "Simply a file" 16(defgroup signed-bad nil "Simply a file."
17 :group 'lisp) 17 :group 'lisp)
18 18
19(defcustom signed-bad-super-sunday t 19(defcustom signed-bad-super-sunday t
@@ -26,7 +26,7 @@
26 26
27;;;###autoload 27;;;###autoload
28(define-minor-mode signed-bad-mode 28(define-minor-mode signed-bad-mode
29 "It does good things to stuff") 29 "It does good things to stuff.")
30 30
31(provide 'signed-bad) 31(provide 'signed-bad)
32 32
diff --git a/test/lisp/emacs-lisp/package-resources/signed/signed-good-1.0.el b/test/lisp/emacs-lisp/package-resources/signed/signed-good-1.0.el
index 60b1b8663d9..8a408c1f301 100644
--- a/test/lisp/emacs-lisp/package-resources/signed/signed-good-1.0.el
+++ b/test/lisp/emacs-lisp/package-resources/signed/signed-good-1.0.el
@@ -8,12 +8,12 @@
8;;; Commentary: 8;;; Commentary:
9 9
10;; This package provides a minor mode to frobnicate and/or bifurcate 10;; This package provides a minor mode to frobnicate and/or bifurcate
11;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly" 11;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
12;; and all your dreams will come true. 12;; and all your dreams will come true.
13 13
14;;; Code: 14;;; Code:
15 15
16(defgroup signed-good nil "Simply a file" 16(defgroup signed-good nil "Simply a file."
17 :group 'lisp) 17 :group 'lisp)
18 18
19(defcustom signed-good-super-sunday t 19(defcustom signed-good-super-sunday t
@@ -26,7 +26,7 @@
26 26
27;;;###autoload 27;;;###autoload
28(define-minor-mode signed-good-mode 28(define-minor-mode signed-good-mode
29 "It does good things to stuff") 29 "It does good things to stuff.")
30 30
31(provide 'signed-good) 31(provide 'signed-good)
32 32
diff --git a/test/lisp/emacs-lisp/package-resources/simple-depend-1.0.el b/test/lisp/emacs-lisp/package-resources/simple-depend-1.0.el
index cb003905bb5..f1ee8627610 100644
--- a/test/lisp/emacs-lisp/package-resources/simple-depend-1.0.el
+++ b/test/lisp/emacs-lisp/package-resources/simple-depend-1.0.el
@@ -12,6 +12,6 @@
12;;; Code: 12;;; Code:
13 13
14(defvar simple-depend "Value" 14(defvar simple-depend "Value"
15 "Some trivial code") 15 "Some trivial code.")
16 16
17;;; simple-depend.el ends here 17;;; simple-depend.el ends here
diff --git a/test/lisp/emacs-lisp/package-resources/simple-single-1.3.el b/test/lisp/emacs-lisp/package-resources/simple-single-1.3.el
index 9c3f427ff48..459801d78cf 100644
--- a/test/lisp/emacs-lisp/package-resources/simple-single-1.3.el
+++ b/test/lisp/emacs-lisp/package-resources/simple-single-1.3.el
@@ -8,12 +8,12 @@
8;;; Commentary: 8;;; Commentary:
9 9
10;; This package provides a minor mode to frobnicate and/or bifurcate 10;; This package provides a minor mode to frobnicate and/or bifurcate
11;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly" 11;; any flanges you desire. To activate it, type "C-M-r M-3 butterfly"
12;; and all your dreams will come true. 12;; and all your dreams will come true.
13 13
14;;; Code: 14;;; Code:
15 15
16(defgroup simple-single nil "Simply a file" 16(defgroup simple-single nil "Simply a file."
17 :group 'lisp) 17 :group 'lisp)
18 18
19(defcustom simple-single-super-sunday t 19(defcustom simple-single-super-sunday t
@@ -26,7 +26,7 @@
26 26
27;;;###autoload 27;;;###autoload
28(define-minor-mode simple-single-mode 28(define-minor-mode simple-single-mode
29 "It does good things to stuff") 29 "It does good things to stuff.")
30 30
31(provide 'simple-single) 31(provide 'simple-single)
32 32
diff --git a/test/lisp/emacs-lisp/package-resources/simple-two-depend-1.1.el b/test/lisp/emacs-lisp/package-resources/simple-two-depend-1.1.el
index a0a9607350a..8de6141d67a 100644
--- a/test/lisp/emacs-lisp/package-resources/simple-two-depend-1.1.el
+++ b/test/lisp/emacs-lisp/package-resources/simple-two-depend-1.1.el
@@ -12,6 +12,6 @@
12;;; Code: 12;;; Code:
13 13
14(defvar simple-two-depend "Value" 14(defvar simple-two-depend "Value"
15 "Some trivial code") 15 "Some trivial code.")
16 16
17;;; simple-two-depend.el ends here 17;;; simple-two-depend.el ends here
diff --git a/test/lisp/emacs-lisp/package-tests.el b/test/lisp/emacs-lisp/package-tests.el
index 77bc8117cf2..1fd93bc1be7 100644
--- a/test/lisp/emacs-lisp/package-tests.el
+++ b/test/lisp/emacs-lisp/package-tests.el
@@ -180,7 +180,7 @@
180 (replace-regexp-in-string "-pkg\\.el\\'" "" (package--description-file dir))) 180 (replace-regexp-in-string "-pkg\\.el\\'" "" (package--description-file dir)))
181 181
182(defun package-test-suffix-matches (base suffix-list) 182(defun package-test-suffix-matches (base suffix-list)
183 "Return file names matching BASE concatenated with each item in SUFFIX-LIST" 183 "Return file names matching BASE concatenated with each item in SUFFIX-LIST."
184 (mapcan (lambda (item) (file-expand-wildcards (concat base item))) 184 (mapcan (lambda (item) (file-expand-wildcards (concat base item)))
185 suffix-list)) 185 suffix-list))
186 186
diff --git a/test/lisp/emacs-lisp/regexp-opt-tests.el b/test/lisp/emacs-lisp/regexp-opt-tests.el
index 940feb5e828..65494e20df6 100644
--- a/test/lisp/emacs-lisp/regexp-opt-tests.el
+++ b/test/lisp/emacs-lisp/regexp-opt-tests.el
@@ -66,4 +66,4 @@
66 66
67 (should (equal (regexp-opt-charset '()) regexp-unmatchable))) 67 (should (equal (regexp-opt-charset '()) regexp-unmatchable)))
68 68
69;;; regexp-tests.el ends here. 69;;; regexp-opt-tests.el ends here
diff --git a/test/lisp/emacs-lisp/rx-tests.el b/test/lisp/emacs-lisp/rx-tests.el
index 4828df0de92..3bc35feb6dd 100644
--- a/test/lisp/emacs-lisp/rx-tests.el
+++ b/test/lisp/emacs-lisp/rx-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21(require 'rx) 23(require 'rx)
22 24
@@ -583,3 +585,5 @@
583 "\\(?3:.+$\\)"))) 585 "\\(?3:.+$\\)")))
584 586
585(provide 'rx-tests) 587(provide 'rx-tests)
588
589;;; rx-tests.el ends here
diff --git a/test/lisp/emacs-lisp/shortdoc-tests.el b/test/lisp/emacs-lisp/shortdoc-tests.el
index 3bb3185649b..cfb0b4244bc 100644
--- a/test/lisp/emacs-lisp/shortdoc-tests.el
+++ b/test/lisp/emacs-lisp/shortdoc-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21(require 'shortdoc) 23(require 'shortdoc)
22 24
@@ -43,3 +45,5 @@
43 (setq props (cddr props)))))))) 45 (setq props (cddr props))))))))
44 46
45(provide 'shortdoc-tests) 47(provide 'shortdoc-tests)
48
49;;; shortdoc-tests.el ends here
diff --git a/test/lisp/emacs-lisp/testcover-resources/testcases.el b/test/lisp/emacs-lisp/testcover-resources/testcases.el
index 7ced257c6f9..29094526d7e 100644
--- a/test/lisp/emacs-lisp/testcover-resources/testcases.el
+++ b/test/lisp/emacs-lisp/testcover-resources/testcases.el
@@ -77,12 +77,12 @@
77"Testcover doesn't prevent testing of defcustom values." 77"Testcover doesn't prevent testing of defcustom values."
78;; ==== 78;; ====
79(defgroup testcover-testcase nil 79(defgroup testcover-testcase nil
80 "Test case for testcover" 80 "Test case for testcover."
81 :group 'lisp 81 :group 'lisp
82 :prefix "testcover-testcase-" 82 :prefix "testcover-testcase-"
83 :version "26.0") 83 :version "26.0")
84(defcustom testcover-testcase-flag t 84(defcustom testcover-testcase-flag t
85 "Test value used by testcover-tests.el" 85 "Test value used by testcover-tests.el."
86 :type 'boolean 86 :type 'boolean
87 :group 'testcover-testcase) 87 :group 'testcover-testcase)
88(defun testcover-testcase-get-flag () 88(defun testcover-testcase-get-flag ()
@@ -111,7 +111,7 @@
111"Wrapping a form with noreturn prevents splotching." 111"Wrapping a form with noreturn prevents splotching."
112;; ==== 112;; ====
113(defun testcover-testcase-cancel (spacecraft) 113(defun testcover-testcase-cancel (spacecraft)
114 (error "no destination for %s" spacecraft)) 114 (error "No destination for %s" spacecraft))
115(defun testcover-testcase-launch (spacecraft planet) 115(defun testcover-testcase-launch (spacecraft planet)
116 (if (null planet) 116 (if (null planet)
117 (noreturn (testcover-testcase-cancel spacecraft%%%)) 117 (noreturn (testcover-testcase-cancel spacecraft%%%))
@@ -220,7 +220,7 @@
220(defun testcover-testcase-cc (arg) 220(defun testcover-testcase-cc (arg)
221 (condition-case nil 221 (condition-case nil
222 (if (null arg%%%)%%% 222 (if (null arg%%%)%%%
223 (error "foo") 223 (error "Foo")
224 "0")!!! 224 "0")!!!
225 (error nil))) 225 (error nil)))
226(should-not (testcover-testcase-cc nil)) 226(should-not (testcover-testcase-cc nil))
@@ -510,4 +510,4 @@ regarding the odd-looking coverage result for the quoted form."
510(testcover-testcase-cyc2 1 2) 510(testcover-testcase-cyc2 1 2)
511(testcover-testcase-cyc2 1 4) 511(testcover-testcase-cyc2 1 4)
512 512
513;; testcases.el ends here. 513;;; testcases.el ends here
diff --git a/test/lisp/emacs-lisp/unsafep-tests.el b/test/lisp/emacs-lisp/unsafep-tests.el
index b2a48d80675..f0d9b032438 100644
--- a/test/lisp/emacs-lisp/unsafep-tests.el
+++ b/test/lisp/emacs-lisp/unsafep-tests.el
@@ -105,7 +105,7 @@
105 . (variable (x))) 105 . (variable (x)))
106 ( (let (1) 2) 106 ( (let (1) 2)
107 . (variable 1)) 107 . (variable 1))
108 ( (error "asdf") 108 ( (error "Asdf")
109 . #'error) 109 . #'error)
110 ( (signal 'error "asdf") 110 ( (signal 'error "asdf")
111 . #'signal) 111 . #'signal)
diff --git a/test/lisp/erc/erc-tests.el b/test/lisp/erc/erc-tests.el
index 22f62a35c7e..6ed26f68289 100644
--- a/test/lisp/erc/erc-tests.el
+++ b/test/lisp/erc/erc-tests.el
@@ -227,3 +227,5 @@
227 (when noninteractive 227 (when noninteractive
228 (kill-buffer "*erc-protocol*") 228 (kill-buffer "*erc-protocol*")
229 (should-not erc-debug-irc-protocol))) 229 (should-not erc-debug-irc-protocol)))
230
231;;; erc-tests.el ends here
diff --git a/test/lisp/erc/erc-track-tests.el b/test/lisp/erc/erc-track-tests.el
index 0ce93bd45c6..b2687a96ab3 100644
--- a/test/lisp/erc/erc-track-tests.el
+++ b/test/lisp/erc/erc-track-tests.el
@@ -119,3 +119,5 @@
119 '(bold erc-current-nick-face) str1) 119 '(bold erc-current-nick-face) str1)
120 (should (erc-faces-in str0)) 120 (should (erc-faces-in str0))
121 (should (erc-faces-in str1)) )) 121 (should (erc-faces-in str1)) ))
122
123;;; erc-track-tests.el ends here
diff --git a/test/lisp/eshell/eshell-tests.el b/test/lisp/eshell/eshell-tests.el
index 4f0cc9b6785..a460f45bf13 100644
--- a/test/lisp/eshell/eshell-tests.el
+++ b/test/lisp/eshell/eshell-tests.el
@@ -262,4 +262,4 @@ chars"
262 262
263(provide 'eshell-tests) 263(provide 'eshell-tests)
264 264
265;;; tests/eshell-tests.el ends here 265;;; eshell-tests.el ends here
diff --git a/test/lisp/faces-resources/faces-test-dark-theme.el b/test/lisp/faces-resources/faces-test-dark-theme.el
index f3ef6b67fa7..7e8871ec10a 100644
--- a/test/lisp/faces-resources/faces-test-dark-theme.el
+++ b/test/lisp/faces-resources/faces-test-dark-theme.el
@@ -22,7 +22,7 @@
22;;; Code: 22;;; Code:
23 23
24(deftheme faces-test-dark 24(deftheme faces-test-dark
25 "") 25 "Dark test theme.")
26 26
27(custom-theme-set-faces 27(custom-theme-set-faces
28 'faces-test-dark 28 'faces-test-dark
diff --git a/test/lisp/faces-resources/faces-test-light-theme.el b/test/lisp/faces-resources/faces-test-light-theme.el
index 390b8461644..70a75017614 100644
--- a/test/lisp/faces-resources/faces-test-light-theme.el
+++ b/test/lisp/faces-resources/faces-test-light-theme.el
@@ -22,7 +22,7 @@
22;;; Code: 22;;; Code:
23 23
24(deftheme faces-test-light 24(deftheme faces-test-light
25 "") 25 "Light test theme.")
26 26
27(custom-theme-set-faces 27(custom-theme-set-faces
28 'faces-test-light 28 'faces-test-light
diff --git a/test/lisp/faces-tests.el b/test/lisp/faces-tests.el
index c0db9c9de17..fe5f3ec95f8 100644
--- a/test/lisp/faces-tests.el
+++ b/test/lisp/faces-tests.el
@@ -25,7 +25,7 @@
25(require 'ert) 25(require 'ert)
26(require 'ert-x) 26(require 'ert-x)
27 27
28(defgroup faces--test nil "" 28(defgroup faces--test nil "Group to test faces."
29 :group 'faces--test) 29 :group 'faces--test)
30 30
31(defface faces--test1 31(defface faces--test1
diff --git a/test/lisp/gnus/gnus-search-tests.el b/test/lisp/gnus/gnus-search-tests.el
index 6148da65621..9f012d4e888 100644
--- a/test/lisp/gnus/gnus-search-tests.el
+++ b/test/lisp/gnus/gnus-search-tests.el
@@ -97,4 +97,4 @@
97 "more bits")))) 97 "more bits"))))
98 98
99(provide 'gnus-search-tests) 99(provide 'gnus-search-tests)
100;;; search-tests.el ends here 100;;; gnus-search-tests.el ends here
diff --git a/test/lisp/gnus/gnus-util-tests.el b/test/lisp/gnus/gnus-util-tests.el
index f8d30f6373e..60a9cde0e7f 100644
--- a/test/lisp/gnus/gnus-util-tests.el
+++ b/test/lisp/gnus/gnus-util-tests.el
@@ -132,4 +132,4 @@
132 (should (equal '("1") (gnus-setdiff '(2 "1" 2) '(2)))) 132 (should (equal '("1") (gnus-setdiff '(2 "1" 2) '(2))))
133 (should (equal '("1" "1") (gnus-setdiff '(2 "1" 2 "1") '(2))))) 133 (should (equal '("1" "1") (gnus-setdiff '(2 "1" 2 "1") '(2)))))
134 134
135;;; gnustest-gnus-util.el ends here 135;;; gnus-util-tests.el ends here
diff --git a/test/lisp/gnus/message-tests.el b/test/lisp/gnus/message-tests.el
index b4f2b7f675d..0f42f62f386 100644
--- a/test/lisp/gnus/message-tests.el
+++ b/test/lisp/gnus/message-tests.el
@@ -185,4 +185,4 @@ Hello.
185 185
186(provide 'message-mode-tests) 186(provide 'message-mode-tests)
187 187
188;;; message-mode-tests.el ends here 188;;; message-tests.el ends here
diff --git a/test/lisp/htmlfontify-tests.el b/test/lisp/htmlfontify-tests.el
index 879131cae32..15798319a13 100644
--- a/test/lisp/htmlfontify-tests.el
+++ b/test/lisp/htmlfontify-tests.el
@@ -43,4 +43,4 @@ available (Bug#25468)."
43 0))) 43 0)))
44 44
45(provide 'htmlfontify-tests) 45(provide 'htmlfontify-tests)
46;; htmlfontify-tests.el ends here 46;;; htmlfontify-tests.el ends here
diff --git a/test/lisp/ibuffer-tests.el b/test/lisp/ibuffer-tests.el
index a51079180a5..9b0327b0ef0 100644
--- a/test/lisp/ibuffer-tests.el
+++ b/test/lisp/ibuffer-tests.el
@@ -826,4 +826,4 @@
826 (should (equal (ibuffer-unary-operand '(not . a)) 'a))) 826 (should (equal (ibuffer-unary-operand '(not . a)) 'a)))
827 827
828(provide 'ibuffer-tests) 828(provide 'ibuffer-tests)
829;; ibuffer-tests.el ends here 829;;; ibuffer-tests.el ends here
diff --git a/test/lisp/info-xref-tests.el b/test/lisp/info-xref-tests.el
index ecba86146f1..0b8091f17af 100644
--- a/test/lisp/info-xref-tests.el
+++ b/test/lisp/info-xref-tests.el
@@ -161,4 +161,4 @@ text.
161 (line-end-position))))))) 161 (line-end-position)))))))
162 162
163 163
164;;; info-xref.el ends here 164;;; info-xref-tests.el ends here
diff --git a/test/lisp/international/ccl-tests.el b/test/lisp/international/ccl-tests.el
index 0f765e4ff88..f3da2d88732 100644
--- a/test/lisp/international/ccl-tests.el
+++ b/test/lisp/international/ccl-tests.el
@@ -246,3 +246,5 @@ At EOF:
246 (registers [17 0 0 0 0 0 0 0])) 246 (registers [17 0 0 0 0 0 0 0]))
247 (ccl-execute compiled registers) 247 (ccl-execute compiled registers)
248 (should (equal registers [2 16 0 0 0 0 0 1]))))) 248 (should (equal registers [2 16 0 0 0 0 0 1])))))
249
250;;; ccl-tests.el ends here
diff --git a/test/lisp/jit-lock-tests.el b/test/lisp/jit-lock-tests.el
index 121966b2b77..a54aad8165c 100644
--- a/test/lisp/jit-lock-tests.el
+++ b/test/lisp/jit-lock-tests.el
@@ -58,3 +58,5 @@
58 (with-silent-modifications 58 (with-silent-modifications
59 (put-text-property (point-min) (point-max) 'fontified t)) 59 (put-text-property (point-min) (point-max) 'fontified t))
60 (jit-lock-fontify-now (point-min) (point-max)))) 60 (jit-lock-fontify-now (point-min) (point-max))))
61
62;;; jit-lock-tests.el ends here
diff --git a/test/lisp/kmacro-tests.el b/test/lisp/kmacro-tests.el
index 8736f7fd2dc..ecd3d5fc22b 100644
--- a/test/lisp/kmacro-tests.el
+++ b/test/lisp/kmacro-tests.el
@@ -834,7 +834,7 @@ and `read-event' and `read-key-sequence' set up to return items from
834EVENTS and SEQUENCES respectively. SEQUENCES may be nil, but 834EVENTS and SEQUENCES respectively. SEQUENCES may be nil, but
835EVENTS should not be. EVENTS should be a list of symbols bound 835EVENTS should not be. EVENTS should be a list of symbols bound
836in `kmacro-step-edit-map' or `query-replace' map, and this function 836in `kmacro-step-edit-map' or `query-replace' map, and this function
837will do the keymap lookup for you. SEQUENCES should contain 837will do the keymap lookup for you. SEQUENCES should contain
838return values for `read-key-sequence'. 838return values for `read-key-sequence'.
839 839
840Before running the macro, the current buffer will be erased. 840Before running the macro, the current buffer will be erased.
diff --git a/test/lisp/mail/rmail-tests.el b/test/lisp/mail/rmail-tests.el
index f533401496b..826a90455fb 100644
--- a/test/lisp/mail/rmail-tests.el
+++ b/test/lisp/mail/rmail-tests.el
@@ -32,4 +32,4 @@
32 'rmail-edit-current-message)))) 32 'rmail-edit-current-message))))
33 33
34(provide 'rmail-tests) 34(provide 'rmail-tests)
35;; rmail-tests.el ends here 35;;; rmail-tests.el ends here
diff --git a/test/lisp/mail/rmailmm-tests.el b/test/lisp/mail/rmailmm-tests.el
index a022008b534..d7b3775d6d0 100644
--- a/test/lisp/mail/rmailmm-tests.el
+++ b/test/lisp/mail/rmailmm-tests.el
@@ -114,4 +114,4 @@ This is the epilogue. It is also to be ignored."))
114 114
115(provide 'rmailmm-tests) 115(provide 'rmailmm-tests)
116 116
117;; rmailmm-tests.el ends here 117;;; rmailmm-tests.el ends here
diff --git a/test/lisp/mail/uudecode-tests.el b/test/lisp/mail/uudecode-tests.el
index 6ff767562e3..981ce1c4ae0 100644
--- a/test/lisp/mail/uudecode-tests.el
+++ b/test/lisp/mail/uudecode-tests.el
@@ -35,11 +35,11 @@
35 35
36(defvar uudecode-tests-encoded-str 36(defvar uudecode-tests-encoded-str
37 (uudecode-tests-read-file (ert-resource-file "uuencoded.txt")) 37 (uudecode-tests-read-file (ert-resource-file "uuencoded.txt"))
38 "Uuencoded data for bookmark-tests.el 38 "Uuencoded data for bookmark-tests.el.
39Same as `uudecode-tests-decoded-str' but uuencoded.") 39Same as `uudecode-tests-decoded-str' but uuencoded.")
40(defvar uudecode-tests-decoded-str 40(defvar uudecode-tests-decoded-str
41 (uudecode-tests-read-file (ert-resource-file "uudecoded.txt")) 41 (uudecode-tests-read-file (ert-resource-file "uudecoded.txt"))
42 "Plain text data for bookmark-tests.el 42 "Plain text data for bookmark-tests.el.
43Same as `uudecode-tests-encoded-str' but plain text.") 43Same as `uudecode-tests-encoded-str' but plain text.")
44 44
45(ert-deftest uudecode-tests-decode-region-internal () 45(ert-deftest uudecode-tests-decode-region-internal ()
diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el
index ed532af657a..bfb83f25184 100644
--- a/test/lisp/net/shr-tests.el
+++ b/test/lisp/net/shr-tests.el
@@ -67,4 +67,4 @@
67 67
68(require 'shr) 68(require 'shr)
69 69
70;;; shr-stream-tests.el ends here 70;;; shr-tests.el ends here
diff --git a/test/lisp/net/socks-tests.el b/test/lisp/net/socks-tests.el
index c0f90bc2d47..9079c1bef2a 100644
--- a/test/lisp/net/socks-tests.el
+++ b/test/lisp/net/socks-tests.el
@@ -128,7 +128,7 @@
128 128
129(defvar socks-tests-canned-server-patterns nil 129(defvar socks-tests-canned-server-patterns nil
130 "Alist containing request/response cons pairs to be tried in order. 130 "Alist containing request/response cons pairs to be tried in order.
131Vectors must match verbatim. Strings are considered regex patterns.") 131Vectors must match verbatim. Strings are considered regex patterns.")
132 132
133(defun socks-tests-canned-server-create () 133(defun socks-tests-canned-server-create ()
134 "Create and return a fake SOCKS server." 134 "Create and return a fake SOCKS server."
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 26a3ac7e964..55396c50797 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -6071,7 +6071,7 @@ This requires restrictions of file name syntax."
6071 'tramp-ftp-file-name-handler)) 6071 'tramp-ftp-file-name-handler))
6072 6072
6073(defun tramp--test-crypt-p () 6073(defun tramp--test-crypt-p ()
6074 "Check, whether the remote directory is crypted" 6074 "Check, whether the remote directory is crypted."
6075 (tramp-crypt-file-name-p tramp-test-temporary-file-directory)) 6075 (tramp-crypt-file-name-p tramp-test-temporary-file-directory))
6076 6076
6077(defun tramp--test-docker-p () 6077(defun tramp--test-docker-p ()
diff --git a/test/lisp/newcomment-tests.el b/test/lisp/newcomment-tests.el
index 5485673b72d..65690e593db 100644
--- a/test/lisp/newcomment-tests.el
+++ b/test/lisp/newcomment-tests.el
@@ -1,4 +1,4 @@
1;;; newcomment-tests.el -*- lexical-binding:t -*- 1;;; newcomment-tests.el --- Tests for newcomment.el -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 2021 Free Software Foundation, Inc. 3;; Copyright (C) 2021 Free Software Foundation, Inc.
4 4
@@ -36,4 +36,4 @@
36 (uncomment-region (point-min) (point-max)) 36 (uncomment-region (point-min) (point-max))
37 (buffer-string)))))) 37 (buffer-string))))))
38 38
39;;; newcomment-testsuite.el ends here 39;;; newcomment-tests.el ends here
diff --git a/test/lisp/org/org-tests.el b/test/lisp/org/org-tests.el
index c1985a46a40..e53b0384081 100644
--- a/test/lisp/org/org-tests.el
+++ b/test/lisp/org/org-tests.el
@@ -29,3 +29,5 @@ Ref <https://debbugs.gnu.org/30310>."
29 (should (require 'org-version nil t)) 29 (should (require 'org-version nil t))
30 (should (equal (version-to-list (org-release)) 30 (should (equal (version-to-list (org-release))
31 (cdr (assq 'org package--builtin-versions))))) 31 (cdr (assq 'org package--builtin-versions)))))
32
33;;; org-tests.el ends here
diff --git a/test/lisp/play/cookie1-tests.el b/test/lisp/play/cookie1-tests.el
index 75dea4e5ef0..2dd73d18028 100644
--- a/test/lisp/play/cookie1-tests.el
+++ b/test/lisp/play/cookie1-tests.el
@@ -37,4 +37,4 @@
37 (should (= (length (cookie-apropos "false" fortune-file)) 1)))) 37 (should (= (length (cookie-apropos "false" fortune-file)) 1))))
38 38
39(provide 'fortune-tests) 39(provide 'fortune-tests)
40;;; fortune-tests.el ends here 40;;; cookie1-tests.el ends here
diff --git a/test/lisp/progmodes/elisp-mode-tests.el b/test/lisp/progmodes/elisp-mode-tests.el
index 60946c2f446..ba349237cb7 100644
--- a/test/lisp/progmodes/elisp-mode-tests.el
+++ b/test/lisp/progmodes/elisp-mode-tests.el
@@ -429,7 +429,7 @@ to (xref-elisp-test-descr-to-target xref)."
429 slot-1) 429 slot-1)
430 430
431(cl-defgeneric xref-elisp-generic-no-methods (arg1 arg2) 431(cl-defgeneric xref-elisp-generic-no-methods (arg1 arg2)
432 "doc string generic no-methods" 432 "Doc string generic no-methods."
433 ;; No default implementation, no methods, but fboundp is true for 433 ;; No default implementation, no methods, but fboundp is true for
434 ;; this symbol; it calls cl-no-applicable-method 434 ;; this symbol; it calls cl-no-applicable-method
435 ) 435 )
@@ -440,44 +440,44 @@ to (xref-elisp-test-descr-to-target xref)."
440;; ‘this’. It passes in interactive tests, so I haven't been able to 440;; ‘this’. It passes in interactive tests, so I haven't been able to
441;; track down the problem. 441;; track down the problem.
442(cl-defmethod xref-elisp-generic-no-default ((this xref-elisp-root-type) arg2) 442(cl-defmethod xref-elisp-generic-no-default ((this xref-elisp-root-type) arg2)
443 "doc string generic no-default xref-elisp-root-type" 443 "Doc string generic no-default xref-elisp-root-type."
444 "non-default for no-default") 444 "non-default for no-default")
445 445
446;; defgeneric after defmethod in file to ensure the fallback search 446;; defgeneric after defmethod in file to ensure the fallback search
447;; method of just looking for the function name will fail. 447;; method of just looking for the function name will fail.
448(cl-defgeneric xref-elisp-generic-no-default (arg1 arg2) 448(cl-defgeneric xref-elisp-generic-no-default (arg1 arg2)
449 "doc string generic no-default generic" 449 "Doc string generic no-default generic."
450 ;; No default implementation; this function calls the cl-generic 450 ;; No default implementation; this function calls the cl-generic
451 ;; dispatching code. 451 ;; dispatching code.
452 ) 452 )
453 453
454(cl-defgeneric xref-elisp-generic-co-located-default (arg1 arg2) 454(cl-defgeneric xref-elisp-generic-co-located-default (arg1 arg2)
455 "doc string generic co-located-default" 455 "Doc string generic co-located-default."
456 "co-located default") 456 "co-located default")
457 457
458(cl-defmethod xref-elisp-generic-co-located-default ((this xref-elisp-root-type) arg2) 458(cl-defmethod xref-elisp-generic-co-located-default ((this xref-elisp-root-type) arg2)
459 "doc string generic co-located-default xref-elisp-root-type" 459 "Doc string generic co-located-default xref-elisp-root-type."
460 "non-default for co-located-default") 460 "non-default for co-located-default")
461 461
462(cl-defgeneric xref-elisp-generic-separate-default (arg1 arg2) 462(cl-defgeneric xref-elisp-generic-separate-default (arg1 arg2)
463 "doc string generic separate-default" 463 "Doc string generic separate-default."
464 ;; default implementation provided separately 464 ;; default implementation provided separately
465 ) 465 )
466 466
467(cl-defmethod xref-elisp-generic-separate-default (arg1 arg2) 467(cl-defmethod xref-elisp-generic-separate-default (arg1 arg2)
468 "doc string generic separate-default default" 468 "Doc string generic separate-default default."
469 "separate default") 469 "separate default")
470 470
471(cl-defmethod xref-elisp-generic-separate-default ((this xref-elisp-root-type) arg2) 471(cl-defmethod xref-elisp-generic-separate-default ((this xref-elisp-root-type) arg2)
472 "doc string generic separate-default xref-elisp-root-type" 472 "Doc string generic separate-default xref-elisp-root-type."
473 "non-default for separate-default") 473 "non-default for separate-default")
474 474
475(cl-defmethod xref-elisp-generic-implicit-generic (arg1 arg2) 475(cl-defmethod xref-elisp-generic-implicit-generic (arg1 arg2)
476 "doc string generic implicit-generic default" 476 "Doc string generic implicit-generic default."
477 "default for implicit generic") 477 "default for implicit generic")
478 478
479(cl-defmethod xref-elisp-generic-implicit-generic ((this xref-elisp-root-type) arg2) 479(cl-defmethod xref-elisp-generic-implicit-generic ((this xref-elisp-root-type) arg2)
480 "doc string generic implicit-generic xref-elisp-root-type" 480 "Doc string generic implicit-generic xref-elisp-root-type."
481 "non-default for implicit generic") 481 "non-default for implicit generic")
482 482
483 483
@@ -623,35 +623,35 @@ to (xref-elisp-test-descr-to-target xref)."
623(declare-function xref-elisp-overloadable-no-default-default "elisp-mode-tests") 623(declare-function xref-elisp-overloadable-no-default-default "elisp-mode-tests")
624 624
625(define-overloadable-function xref-elisp-overloadable-no-methods () 625(define-overloadable-function xref-elisp-overloadable-no-methods ()
626 "doc string overloadable no-methods") 626 "Doc string overloadable no-methods.")
627 627
628(define-overloadable-function xref-elisp-overloadable-no-default () 628(define-overloadable-function xref-elisp-overloadable-no-default ()
629 "doc string overloadable no-default") 629 "Doc string overloadable no-default.")
630 630
631(define-mode-local-override xref-elisp-overloadable-no-default c-mode 631(define-mode-local-override xref-elisp-overloadable-no-default c-mode
632 (_start _end &optional _nonterminal _depth _returnonerror) 632 (_start _end &optional _nonterminal _depth _returnonerror)
633 "doc string overloadable no-default c-mode." 633 "Doc string overloadable no-default c-mode."
634 "result overloadable no-default c-mode.") 634 "result overloadable no-default c-mode.")
635 635
636(define-overloadable-function xref-elisp-overloadable-co-located-default () 636(define-overloadable-function xref-elisp-overloadable-co-located-default ()
637 "doc string overloadable co-located-default" 637 "Doc string overloadable co-located-default."
638 "result overloadable co-located-default.") 638 "result overloadable co-located-default.")
639 639
640(define-mode-local-override xref-elisp-overloadable-co-located-default c-mode 640(define-mode-local-override xref-elisp-overloadable-co-located-default c-mode
641 (_start _end &optional _nonterminal _depth _returnonerror) 641 (_start _end &optional _nonterminal _depth _returnonerror)
642 "doc string overloadable co-located-default c-mode." 642 "Doc string overloadable co-located-default c-mode."
643 "result overloadable co-located-default c-mode.") 643 "result overloadable co-located-default c-mode.")
644 644
645(define-overloadable-function xref-elisp-overloadable-separate-default () 645(define-overloadable-function xref-elisp-overloadable-separate-default ()
646 "doc string overloadable separate-default.") 646 "Doc string overloadable separate-default.")
647 647
648(defun xref-elisp-overloadable-separate-default-default () 648(defun xref-elisp-overloadable-separate-default-default ()
649 "doc string overloadable separate-default default" 649 "Doc string overloadable separate-default default."
650 "result overloadable separate-default.") 650 "result overloadable separate-default.")
651 651
652(define-mode-local-override xref-elisp-overloadable-separate-default c-mode 652(define-mode-local-override xref-elisp-overloadable-separate-default c-mode
653 (_start _end &optional _nonterminal _depth _returnonerror) 653 (_start _end &optional _nonterminal _depth _returnonerror)
654 "doc string overloadable separate-default c-mode." 654 "Doc string overloadable separate-default c-mode."
655 "result overloadable separate-default c-mode.") 655 "result overloadable separate-default c-mode.")
656 656
657(xref-elisp-deftest find-defs-define-overload-no-methods 657(xref-elisp-deftest find-defs-define-overload-no-methods
diff --git a/test/lisp/progmodes/etags-tests.el b/test/lisp/progmodes/etags-tests.el
index 35a2592e76f..9b14a3ae860 100644
--- a/test/lisp/progmodes/etags-tests.el
+++ b/test/lisp/progmodes/etags-tests.el
@@ -111,3 +111,5 @@
111 (should (visit-tags-table-buffer)) 111 (should (visit-tags-table-buffer))
112 (should (equal tags-file-name (car tag-tables))))) 112 (should (equal tags-file-name (car tag-tables)))))
113 (delete-file file)))) 113 (delete-file file))))
114
115;;; etags-tests.el ends here
diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el
index 10111ca06cd..4c0d15d1e1b 100644
--- a/test/lisp/progmodes/flymake-tests.el
+++ b/test/lisp/progmodes/flymake-tests.el
@@ -193,7 +193,7 @@ SEVERITY-PREDICATE is used to setup
193 193
194(defun flymake-tests--diagnose-words 194(defun flymake-tests--diagnose-words
195 (report-fn type words) 195 (report-fn type words)
196 "Helper. Call REPORT-FN with diagnostics for WORDS in buffer." 196 "Helper. Call REPORT-FN with diagnostics for WORDS in buffer."
197 (funcall report-fn 197 (funcall report-fn
198 (cl-loop 198 (cl-loop
199 for word in words 199 for word in words
diff --git a/test/lisp/progmodes/gdb-mi-tests.el b/test/lisp/progmodes/gdb-mi-tests.el
index ab482214afb..d66df961b63 100644
--- a/test/lisp/progmodes/gdb-mi-tests.el
+++ b/test/lisp/progmodes/gdb-mi-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21(require 'gdb-mi) 23(require 'gdb-mi)
22 24
@@ -44,3 +46,5 @@
44 ) 46 )
45 47
46(provide 'gdb-mi-tests) 48(provide 'gdb-mi-tests)
49
50;;; gdb-mi-tests.el ends here
diff --git a/test/lisp/progmodes/opascal-tests.el b/test/lisp/progmodes/opascal-tests.el
index 682f2c6cb6b..ea91479362d 100644
--- a/test/lisp/progmodes/opascal-tests.el
+++ b/test/lisp/progmodes/opascal-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21(require 'opascal) 23(require 'opascal)
22 24
diff --git a/test/lisp/progmodes/pascal-tests.el b/test/lisp/progmodes/pascal-tests.el
index e9c705806b3..f5202143e20 100644
--- a/test/lisp/progmodes/pascal-tests.el
+++ b/test/lisp/progmodes/pascal-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21(require 'pascal) 23(require 'pascal)
22 24
@@ -61,3 +63,5 @@
61 (should (equal (point) 15)))) 63 (should (equal (point) 15))))
62 64
63(provide 'pascal-tests) 65(provide 'pascal-tests)
66
67;;; pascal-tests.el ends here
diff --git a/test/lisp/progmodes/sql-tests.el b/test/lisp/progmodes/sql-tests.el
index 21dd0649529..99b79b61d65 100644
--- a/test/lisp/progmodes/sql-tests.el
+++ b/test/lisp/progmodes/sql-tests.el
@@ -50,7 +50,7 @@
50 (lambda (_command) t)) 50 (lambda (_command) t))
51 ((symbol-function 'process-lines) 51 ((symbol-function 'process-lines)
52 (lambda (_program &rest _args) 52 (lambda (_program &rest _args)
53 (error "some error")))) 53 (error "Some error"))))
54 (should-not (sql-postgres-list-databases)))) 54 (should-not (sql-postgres-list-databases))))
55 55
56;;; Check Connection Password Handling/Wallet 56;;; Check Connection Password Handling/Wallet
diff --git a/test/lisp/ps-print-tests.el b/test/lisp/ps-print-tests.el
index b25e88622d8..d468911dd3d 100644
--- a/test/lisp/ps-print-tests.el
+++ b/test/lisp/ps-print-tests.el
@@ -34,3 +34,5 @@
34 (autoloadp 34 (autoloadp
35 (symbol-function 35 (symbol-function
36 'ps-mule-initialize)))) 36 'ps-mule-initialize))))
37
38;;; ps-print-tests.el ends here
diff --git a/test/lisp/saveplace-tests.el b/test/lisp/saveplace-tests.el
index 17199ed443a..63577fdd167 100644
--- a/test/lisp/saveplace-tests.el
+++ b/test/lisp/saveplace-tests.el
@@ -21,6 +21,8 @@
21 21
22;;; Commentary: 22;;; Commentary:
23 23
24;;; Code:
25
24(require 'ert) 26(require 'ert)
25(require 'ert-x) 27(require 'ert-x)
26(require 'saveplace) 28(require 'saveplace)
diff --git a/test/lisp/ses-tests.el b/test/lisp/ses-tests.el
index 04f255dcd4c..9a7fb502d7c 100644
--- a/test/lisp/ses-tests.el
+++ b/test/lisp/ses-tests.el
@@ -175,3 +175,5 @@ to `ses--bar' and inserting a row, makes A2 value empty, and `ses--bar' equal to
175 175
176 176
177(provide 'ses-tests) 177(provide 'ses-tests)
178
179;;; ses-tests.el ends here
diff --git a/test/lisp/shell-tests.el b/test/lisp/shell-tests.el
index 223a18590b1..342b421911f 100644
--- a/test/lisp/shell-tests.el
+++ b/test/lisp/shell-tests.el
@@ -1,4 +1,4 @@
1;;; shell-tests.el -*- lexical-binding:t -*- 1;;; shell-tests.el --- Tests for shell.el -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 2010-2021 Free Software Foundation, Inc. 3;; Copyright (C) 2010-2021 Free Software Foundation, Inc.
4 4
diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el
index 3ece61290bc..742da0bde59 100644
--- a/test/lisp/simple-tests.el
+++ b/test/lisp/simple-tests.el
@@ -972,4 +972,4 @@ See Bug#21722."
972 (should (= (length (delq nil (undo-make-selective-list 6 9))) 0)))) 972 (should (= (length (delq nil (undo-make-selective-list 6 9))) 0))))
973 973
974(provide 'simple-test) 974(provide 'simple-test)
975;;; simple-test.el ends here 975;;; simple-tests.el ends here
diff --git a/test/lisp/so-long-tests/so-long-tests-helpers.el b/test/lisp/so-long-tests/so-long-tests-helpers.el
index dd2331e6e4a..f542806ac16 100644
--- a/test/lisp/so-long-tests/so-long-tests-helpers.el
+++ b/test/lisp/so-long-tests/so-long-tests-helpers.el
@@ -106,8 +106,8 @@
106(defun so-long-tests-remember () 106(defun so-long-tests-remember ()
107 "Remember the original states of modes and variables. 107 "Remember the original states of modes and variables.
108 108
109Call this after setting up a buffer in the normal (not so-long) 109Call this after setting up a buffer in the normal (not `so-long')
110state for its major mode, so that after triggering a so-long 110state for its major mode, so that after triggering a `so-long'
111action we can call `so-long-revert' and compare the reverted 111action we can call `so-long-revert' and compare the reverted
112state against this remembered state." 112state against this remembered state."
113 (setq so-long-tests-memory nil) 113 (setq so-long-tests-memory nil)
diff --git a/test/lisp/tar-mode-tests.el b/test/lisp/tar-mode-tests.el
index 48a127157dd..6964d423185 100644
--- a/test/lisp/tar-mode-tests.el
+++ b/test/lisp/tar-mode-tests.el
@@ -47,4 +47,4 @@
47 47
48(provide 'tar-mode-tests) 48(provide 'tar-mode-tests)
49 49
50;; tar-mode-tests.el ends here 50;;; tar-mode-tests.el ends here
diff --git a/test/lisp/term/tty-colors-tests.el b/test/lisp/term/tty-colors-tests.el
index ba29a9c376e..d0e739b5ec9 100644
--- a/test/lisp/term/tty-colors-tests.el
+++ b/test/lisp/term/tty-colors-tests.el
@@ -35,4 +35,4 @@
35 35
36(provide 'term-tests) 36(provide 'term-tests)
37 37
38;;; term-tests.el ends here 38;;; tty-colors-tests.el ends here
diff --git a/test/lisp/textmodes/dns-mode-tests.el b/test/lisp/textmodes/dns-mode-tests.el
index 8bc48732c62..1be5291509f 100644
--- a/test/lisp/textmodes/dns-mode-tests.el
+++ b/test/lisp/textmodes/dns-mode-tests.el
@@ -77,3 +77,5 @@
77 (insert " ") 77 (insert " ")
78 (dns-mode-ipv6-to-nibbles nil) 78 (dns-mode-ipv6-to-nibbles nil)
79 (should (equal (buffer-string) "8.b.d.0.1.0.0.2.ip6.arpa. "))))) 79 (should (equal (buffer-string) "8.b.d.0.1.0.0.2.ip6.arpa. ")))))
80
81;;; dns-mode-tests.el ends here
diff --git a/test/lisp/thingatpt-tests.el b/test/lisp/thingatpt-tests.el
index 1849480347e..2a32dc57b1c 100644
--- a/test/lisp/thingatpt-tests.el
+++ b/test/lisp/thingatpt-tests.el
@@ -70,7 +70,7 @@
70 ;; UUID, only hex is allowed 70 ;; UUID, only hex is allowed
71 ("01234567-89ab-cdef-ABCD-EF0123456789" 1 uuid "01234567-89ab-cdef-ABCD-EF0123456789") 71 ("01234567-89ab-cdef-ABCD-EF0123456789" 1 uuid "01234567-89ab-cdef-ABCD-EF0123456789")
72 ("01234567-89ab-cdef-ABCD-EF012345678G" 1 uuid nil)) 72 ("01234567-89ab-cdef-ABCD-EF012345678G" 1 uuid nil))
73 "List of thing-at-point tests. 73 "List of `thing-at-point' tests.
74Each list element should have the form 74Each list element should have the form
75 75
76 (STRING POS THING RESULT) 76 (STRING POS THING RESULT)
@@ -231,4 +231,4 @@ position to retrieve THING.")
231 (goto-char 5) 231 (goto-char 5)
232 (should (eq (symbol-at-point) 'bar)))) 232 (should (eq (symbol-at-point) 'bar))))
233 233
234;;; thingatpt.el ends here 234;;; thingatpt-tests.el ends here
diff --git a/test/lisp/time-stamp-tests.el b/test/lisp/time-stamp-tests.el
index dc628af19fd..0449704b418 100644
--- a/test/lisp/time-stamp-tests.el
+++ b/test/lisp/time-stamp-tests.el
@@ -86,7 +86,7 @@
86 (should (equal (time-stamp-string "%H %Z" ref-time1) "15 GMT"))))) 86 (should (equal (time-stamp-string "%H %Z" ref-time1) "15 GMT")))))
87 87
88(iter-defun time-stamp-test-pattern-sequential () 88(iter-defun time-stamp-test-pattern-sequential ()
89 "Iterate through each possibility for a part of time-stamp-pattern." 89 "Iterate through each possibility for a part of `time-stamp-pattern'."
90 (let ((pattern-value-parts 90 (let ((pattern-value-parts
91 '(("4/" "10/" "-4/" "0/" "") ;0: line limit 91 '(("4/" "10/" "-4/" "0/" "") ;0: line limit
92 ("stamp<" "") ;1: start 92 ("stamp<" "") ;1: start
@@ -115,7 +115,7 @@
115 (extract-part 5)))))))))) 115 (extract-part 5))))))))))
116 116
117(iter-defun time-stamp-test-pattern-multiply () 117(iter-defun time-stamp-test-pattern-multiply ()
118 "Iterate through every combination of parts of time-stamp-pattern." 118 "Iterate through every combination of parts of `time-stamp-pattern'."
119 (let ((line-limit-values '("" "4/")) 119 (let ((line-limit-values '("" "4/"))
120 (start-values '("" "stamp<")) 120 (start-values '("" "stamp<"))
121 (format-values '("%%" "%m")) 121 (format-values '("%%" "%m"))
@@ -871,7 +871,7 @@ The functions in `pattern-mod' are composed left to right."
871 871
872(defmacro formatz-generate-tests 872(defmacro formatz-generate-tests
873 (form-strings hour-mod mins-mod secs-mod big-mod secbig-mod) 873 (form-strings hour-mod mins-mod secs-mod big-mod secbig-mod)
874 "Defines ert-deftest tests for time formats FORM-STRINGS. 874 "Defines tests for time formats FORM-STRINGS.
875FORM-STRINGS is a list of formats, each \"%z\" or some variation thereof. 875FORM-STRINGS is a list of formats, each \"%z\" or some variation thereof.
876 876
877Each of the remaining arguments is an unquoted list of the form 877Each of the remaining arguments is an unquoted list of the form
diff --git a/test/lisp/time-tests.el b/test/lisp/time-tests.el
index 88b7638d91d..89e6985b842 100644
--- a/test/lisp/time-tests.el
+++ b/test/lisp/time-tests.el
@@ -21,6 +21,8 @@
21 21
22;;; Commentary: 22;;; Commentary:
23 23
24;;; Code:
25
24(require 'ert) 26(require 'ert)
25(require 'ert-x) 27(require 'ert-x)
26(require 'time) 28(require 'time)
diff --git a/test/lisp/timezone-tests.el b/test/lisp/timezone-tests.el
index 9f6961409e6..9bbe36cfe8a 100644
--- a/test/lisp/timezone-tests.el
+++ b/test/lisp/timezone-tests.el
@@ -21,6 +21,8 @@
21 21
22;;; Commentary: 22;;; Commentary:
23 23
24;;; Code:
25
24(require 'ert) 26(require 'ert)
25(require 'timezone) 27(require 'timezone)
26 28
diff --git a/test/lisp/url/url-parse-tests.el b/test/lisp/url/url-parse-tests.el
index 2418af40aca..a7f81eba8f5 100644
--- a/test/lisp/url/url-parse-tests.el
+++ b/test/lisp/url/url-parse-tests.el
@@ -23,7 +23,7 @@
23;;; Commentary: 23;;; Commentary:
24 24
25;; Test cases covering generic URI syntax as described in RFC3986, 25;; Test cases covering generic URI syntax as described in RFC3986,
26;; section 3. Syntax Components and 4. Usage. See also appendix 26;; section 3. Syntax Components and 4. Usage. See also appendix
27;; A. Collected ABNF for URI, as the example given here are all 27;; A. Collected ABNF for URI, as the example given here are all
28;; productions of this grammar. 28;; productions of this grammar.
29 29
diff --git a/test/lisp/vc/add-log-tests.el b/test/lisp/vc/add-log-tests.el
index dc2b9961c6c..70e49fe57fe 100644
--- a/test/lisp/vc/add-log-tests.el
+++ b/test/lisp/vc/add-log-tests.el
@@ -29,8 +29,8 @@
29 content marker expected-defun) 29 content marker expected-defun)
30 "Generate an ert test for mode-own `add-log-current-defun-function'. 30 "Generate an ert test for mode-own `add-log-current-defun-function'.
31Run `add-log-current-defun' at the point where MARKER specifies 31Run `add-log-current-defun' at the point where MARKER specifies
32in a buffer which content is CONTENT under major mode MODE. Then 32in a buffer which content is CONTENT under major mode MODE.
33it compares the result with EXPECTED-DEFUN." 33Then it compares the result with EXPECTED-DEFUN."
34 (let ((xname (intern (concat "add-log-current-defun-test-" 34 (let ((xname (intern (concat "add-log-current-defun-test-"
35 (symbol-name name) 35 (symbol-name name)
36 )))) 36 ))))
diff --git a/test/lisp/vc/diff-mode-tests.el b/test/lisp/vc/diff-mode-tests.el
index fefe50d5173..ef19fe0e0e8 100644
--- a/test/lisp/vc/diff-mode-tests.el
+++ b/test/lisp/vc/diff-mode-tests.el
@@ -481,3 +481,4 @@ baz"))))
481 '("/tmp/ange-ftp1351895K.el" "/tmp/ange-ftp13518wvE.el"))))) 481 '("/tmp/ange-ftp1351895K.el" "/tmp/ange-ftp13518wvE.el")))))
482 482
483(provide 'diff-mode-tests) 483(provide 'diff-mode-tests)
484;;; diff-mode-tests.el ends here
diff --git a/test/lisp/vc/smerge-mode-tests.el b/test/lisp/vc/smerge-mode-tests.el
index 2c8f48618e5..d7827c7a8cb 100644
--- a/test/lisp/vc/smerge-mode-tests.el
+++ b/test/lisp/vc/smerge-mode-tests.el
@@ -34,3 +34,5 @@
34 (should (equal (buffer-substring (point-min) (point-max)) "")))) 34 (should (equal (buffer-substring (point-min) (point-max)) ""))))
35 35
36(provide 'smerge-mode-tests) 36(provide 'smerge-mode-tests)
37
38;;; smerge-mode-tests.el ends here
diff --git a/test/lisp/vc/vc-bzr-tests.el b/test/lisp/vc/vc-bzr-tests.el
index b02dce8f707..43385de5955 100644
--- a/test/lisp/vc/vc-bzr-tests.el
+++ b/test/lisp/vc/vc-bzr-tests.el
@@ -153,4 +153,4 @@
153 t))) 153 t)))
154 (delete-directory homedir t)))) 154 (delete-directory homedir t))))
155 155
156;;; vc-bzr.el ends here 156;;; vc-bzr-tests.el ends here
diff --git a/test/lisp/whitespace-tests.el b/test/lisp/whitespace-tests.el
index 9f54a4fd340..1001476a286 100644
--- a/test/lisp/whitespace-tests.el
+++ b/test/lisp/whitespace-tests.el
@@ -51,7 +51,7 @@
51;; We cannot call whitespace-mode because it will do nothing in batch 51;; We cannot call whitespace-mode because it will do nothing in batch
52;; mode. So we call its innards instead. 52;; mode. So we call its innards instead.
53(defun whitespace-tests-whitespace-mode-on () 53(defun whitespace-tests-whitespace-mode-on ()
54 "Turn whitespace-mode on even in batch mode." 54 "Turn `whitespace-mode' on even in batch mode."
55 (whitespace-turn-on) 55 (whitespace-turn-on)
56 (whitespace-action-when-on) 56 (whitespace-action-when-on)
57 (setq whitespace-mode t)) 57 (setq whitespace-mode t))
diff --git a/test/lisp/xml-tests.el b/test/lisp/xml-tests.el
index b00b58acfc5..7c64ef39f8d 100644
--- a/test/lisp/xml-tests.el
+++ b/test/lisp/xml-tests.el
@@ -78,7 +78,7 @@
78 ;; Bug#16344 78 ;; Bug#16344
79 "<!----><x>< /x>" 79 "<!----><x>< /x>"
80 "<a>< b/></a>") 80 "<a>< b/></a>")
81 "List of XML strings that should signal an error in the parser") 81 "List of XML strings that should signal an error in the parser.")
82 82
83(defvar xml-parse-tests--qnames 83(defvar xml-parse-tests--qnames
84 '( ;; Test data for name expansion 84 '( ;; Test data for name expansion
@@ -199,4 +199,4 @@ Parser is called with and without 'symbol-qnames argument.")
199;; no-byte-compile: t 199;; no-byte-compile: t
200;; End: 200;; End:
201 201
202;;; xml-parse-tests.el ends here. 202;;; xml-tests.el ends here
diff --git a/test/manual/biditest.el b/test/manual/biditest.el
index a77fc158807..c84e7ed7310 100644
--- a/test/manual/biditest.el
+++ b/test/manual/biditest.el
@@ -121,3 +121,5 @@ BidiCharacterTest.txt file."
121 (message "%s" (bidi-resolved-levels))) 121 (message "%s" (bidi-resolved-levels)))
122 122
123(define-key global-map [f8] #'bidi-levels) 123(define-key global-map [f8] #'bidi-levels)
124
125;;; biditest.el ends here
diff --git a/test/manual/cedet/ede-tests.el b/test/manual/cedet/ede-tests.el
index 2af50860c60..17618381ef2 100644
--- a/test/manual/cedet/ede-tests.el
+++ b/test/manual/cedet/ede-tests.el
@@ -80,4 +80,4 @@ The search is done with the current EDE root."
80 (ede-locate-file-in-project loc file) 80 (ede-locate-file-in-project loc file)
81 (data-debug-insert-object-slots loc "]"))) 81 (data-debug-insert-object-slots loc "]")))
82 82
83;;; ede-test.el ends here 83;;; ede-tests.el ends here
diff --git a/test/manual/cedet/semantic-tests.el b/test/manual/cedet/semantic-tests.el
index 044db29cda7..3e416cc6b20 100644
--- a/test/manual/cedet/semantic-tests.el
+++ b/test/manual/cedet/semantic-tests.el
@@ -271,3 +271,5 @@ tag that contains point, and return that."
271 Lcount (semantic-tag-name target) 271 Lcount (semantic-tag-name target)
272 (semantic-elapsed-time start nil))) 272 (semantic-elapsed-time start nil)))
273 Lcount))) 273 Lcount)))
274
275;;; semantic-tests.el ends here
diff --git a/test/manual/cedet/tests/test.el b/test/manual/cedet/tests/test.el
index d1d0d1602f4..34c03619f88 100644
--- a/test/manual/cedet/tests/test.el
+++ b/test/manual/cedet/tests/test.el
@@ -19,31 +19,29 @@
19;; You should have received a copy of the GNU General Public License 19;; You should have received a copy of the GNU General Public License
20;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 20;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
21 21
22;;; Require 22;;; Code:
23;; 23
24(require 'semantic) 24(require 'semantic)
25(require 'eieio "../eieio") 25(require 'eieio "../eieio")
26 26
27;; tags encapsulated in eval-when-compile and eval-and-compile 27;; tags encapsulated in eval-when-compile and eval-and-compile
28;; should be expanded out into the outer environment. 28;; should be expanded out into the outer environment.
29(eval-when-compile 29(eval-when-compile
30 (require 'semantic-imenu) 30 (require 'semantic-imenu))
31 )
32 31
33(eval-and-compile 32(eval-and-compile
34 (defconst const-1 nil) 33 (defconst const-1 nil)
35 (defun function-1 (arg) 34 (defun function-1 (arg)
36 nil) 35 nil))
37 )
38 36
39;;; Functions 37;;; Functions
40;; 38;;
41(defun a-defun (arg1 arg2 &optional arg3) 39(defun a-defun (arg1 arg2 &optional arg3)
42 "doc a" 40 "Doc a."
43 nil) 41 nil)
44 42
45(defun a-defun-interactive (arg1 arg2 &optional arg3) 43(defun a-defun-interactive (arg1 arg2 &optional arg3)
46 "doc a that is a command" 44 "Doc a that is a command."
47 (interactive "R") 45 (interactive "R")
48 nil) 46 nil)
49 47
@@ -52,15 +50,15 @@
52 nil) 50 nil)
53 51
54(defsubst a-defsubst (arg1 arg2 &optional arg3) 52(defsubst a-defsubst (arg1 arg2 &optional arg3)
55 "doc a-subst" 53 "Doc a-subst."
56 nil) 54 nil)
57 55
58(defmacro a-defmacro (arg1 arg2 &optional arg3) 56(defmacro a-defmacro (arg1 arg2 &optional arg3)
59 "doc a-macro" 57 "Doc a-macro."
60 nil) 58 nil)
61 59
62(define-overload a-overload (arg) 60(define-overload a-overload (arg)
63 "doc a-overload" 61 "Doc a-overload."
64 nil) 62 nil)
65 63
66;;; Methods 64;;; Methods
@@ -81,16 +79,16 @@
81;;; Variables 79;;; Variables
82;; 80;;
83(defvar a-defvar (cons 1 2) 81(defvar a-defvar (cons 1 2)
84 "Variable a") 82 "Variable a.")
85 83
86;; FIXME: This practice is not recommended in recent Emacs. Remove? 84;; FIXME: This practice is not recommended in recent Emacs. Remove?
87(defvar a-defvar-star (cons 1 2) 85(defvar a-defvar-star (cons 1 2)
88 "*User visible var a") 86 "*User visible var a.")
89 87
90(defconst a-defconst 'a "var doc const") 88(defconst a-defconst 'a "Var doc const.")
91 89
92(defcustom a-defcustom nil 90(defcustom a-defcustom nil
93 "doc custom" 91 "Doc custom."
94 :group 'a-defgroup 92 :group 'a-defgroup
95 :type 'boolean) 93 :type 'boolean)
96 94
@@ -111,7 +109,7 @@
111 109
112 110
113(defgroup a-defgroup nil 111(defgroup a-defgroup nil
114 "Group for `emacs-lisp' regression-test") 112 "Group for `emacs-lisp' regression-test.")
115 113
116;;; Classes 114;;; Classes
117;; 115;;
@@ -154,3 +152,5 @@
154 "some value") 152 "some value")
155 153
156(provide 'test) 154(provide 'test)
155
156;;; test.el ends here
diff --git a/test/manual/etags/el-src/emacs/lisp/progmodes/etags.el b/test/manual/etags/el-src/emacs/lisp/progmodes/etags.el
index 36f6624472d..86cc8825466 100644
--- a/test/manual/etags/el-src/emacs/lisp/progmodes/etags.el
+++ b/test/manual/etags/el-src/emacs/lisp/progmodes/etags.el
@@ -732,7 +732,7 @@ Returns t if it visits a tags table, or nil if there are no more in the list."
732 "Return the file name of the file whose tags point is within. 732 "Return the file name of the file whose tags point is within.
733Assumes the tags table is the current buffer. 733Assumes the tags table is the current buffer.
734If RELATIVE is non-nil, file name returned is relative to tags 734If RELATIVE is non-nil, file name returned is relative to tags
735table file's directory. If RELATIVE is nil, file name returned 735table file's directory. If RELATIVE is nil, file name returned
736is complete." 736is complete."
737 (funcall file-of-tag-function relative)) 737 (funcall file-of-tag-function relative))
738 738
diff --git a/test/manual/image-size-tests.el b/test/manual/image-size-tests.el
index 44846a7a67a..067a0bfc8e2 100644
--- a/test/manual/image-size-tests.el
+++ b/test/manual/image-size-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Commentary:
21
20;; To test: Load the file and eval (image-size-tests). 22;; To test: Load the file and eval (image-size-tests).
21;; A non-erroring result is a success. 23;; A non-erroring result is a success.
22 24
diff --git a/test/manual/image-transforms-tests.el b/test/manual/image-transforms-tests.el
index debb74f2edb..acbaed5c0b6 100644
--- a/test/manual/image-transforms-tests.el
+++ b/test/manual/image-transforms-tests.el
@@ -174,3 +174,5 @@
174 (test-scaling) 174 (test-scaling)
175 (test-scaling-rotation) 175 (test-scaling-rotation)
176 (goto-char (point-min)))) 176 (goto-char (point-min))))
177
178;;; image-transforms-tests.el ends here
diff --git a/test/manual/redisplay-testsuite.el b/test/manual/redisplay-testsuite.el
index 8e90f2d7a5c..8a4828417c8 100644
--- a/test/manual/redisplay-testsuite.el
+++ b/test/manual/redisplay-testsuite.el
@@ -350,3 +350,5 @@ static unsigned char x_bits[] = {0xff, 0x81, 0xbd, 0xa5, 0xa5, 0xbd, 0x81, 0xff
350 (test-redisplay-4) 350 (test-redisplay-4)
351 (test-redisplay-5) 351 (test-redisplay-5)
352 (goto-char (point-min)))) 352 (goto-char (point-min))))
353
354;;; redisplay-testsuite.el ends here
diff --git a/test/misc/test-custom-libs.el b/test/misc/test-custom-libs.el
index cc2be99dea8..d826dfbcab4 100644
--- a/test/misc/test-custom-libs.el
+++ b/test/misc/test-custom-libs.el
@@ -19,7 +19,7 @@
19 19
20;;; Commentary: 20;;; Commentary:
21 21
22;; This file runs for all libraries with autoloads separate emacs 22;; This file runs for all libraries with autoloads separate Emacs
23;; processes of the form "emacs -batch -l LIB". 23;; processes of the form "emacs -batch -l LIB".
24 24
25;;; Code: 25;;; Code:
@@ -45,4 +45,4 @@
45 (cus-test-libs t) 45 (cus-test-libs t)
46 (should-not cus-test-libs-errors)) 46 (should-not cus-test-libs-errors))
47 47
48;;; test-custom-deps.el ends here 48;;; test-custom-libs.el ends here
diff --git a/test/src/alloc-tests.el b/test/src/alloc-tests.el
index 1324c2d3b4d..5383c436035 100644
--- a/test/src/alloc-tests.el
+++ b/test/src/alloc-tests.el
@@ -58,3 +58,5 @@
58 (dolist (c (list 10003 ?b 128 ?c ?d (max-char) ?e)) 58 (dolist (c (list 10003 ?b 128 ?c ?d (max-char) ?e))
59 (aset s 0 c) 59 (aset s 0 c)
60 (should (equal s (make-string 1 c)))))) 60 (should (equal s (make-string 1 c))))))
61
62;;; alloc-tests.el ends here
diff --git a/test/src/character-tests.el b/test/src/character-tests.el
index f630b32a5ee..ba24d49039c 100644
--- a/test/src/character-tests.el
+++ b/test/src/character-tests.el
@@ -43,3 +43,5 @@
43 (should (= (string-width "áëòç" nil 4) 2)) 43 (should (= (string-width "áëòç" nil 4) 2))
44 (should (= (string-width "הַרְבֵּה אַהֲבָה") 9)) 44 (should (= (string-width "הַרְבֵּה אַהֲבָה") 9))
45 (should (= (string-width "הַרְבֵּה אַהֲבָה" nil 8) 4))) 45 (should (= (string-width "הַרְבֵּה אַהֲבָה" nil 8) 4)))
46
47;;; character-tests.el ends here
diff --git a/test/src/charset-tests.el b/test/src/charset-tests.el
index 5c46627c163..23e201ad453 100644
--- a/test/src/charset-tests.el
+++ b/test/src/charset-tests.el
@@ -22,7 +22,9 @@
22(require 'ert) 22(require 'ert)
23 23
24(ert-deftest charset-decode-char () 24(ert-deftest charset-decode-char ()
25 "Test decode-char." 25 "Test `decode-char'."
26 (should-error (decode-char 'ascii 0.5))) 26 (should-error (decode-char 'ascii 0.5)))
27 27
28(provide 'charset-tests) 28(provide 'charset-tests)
29
30;;; charset-tests.el ends here
diff --git a/test/src/coding-tests.el b/test/src/coding-tests.el
index 134f5676709..1c585ea5377 100644
--- a/test/src/coding-tests.el
+++ b/test/src/coding-tests.el
@@ -434,4 +434,4 @@
434;; End: 434;; End:
435 435
436(provide 'coding-tests) 436(provide 'coding-tests)
437;; coding-tests.el ends here 437;;; coding-tests.el ends here
diff --git a/test/src/comp-resources/comp-test-funcs.el b/test/src/comp-resources/comp-test-funcs.el
index f2a246320ac..eb2521e5d34 100644
--- a/test/src/comp-resources/comp-test-funcs.el
+++ b/test/src/comp-resources/comp-test-funcs.el
@@ -202,7 +202,7 @@
202(defun comp-tests-err-arith-f () 202(defun comp-tests-err-arith-f ()
203 (/ 1 0)) 203 (/ 1 0))
204(defun comp-tests-err-foo-f () 204(defun comp-tests-err-foo-f ()
205 (error "foo")) 205 (error "Foo"))
206 206
207(defun comp-tests-condition-case-0-f () 207(defun comp-tests-condition-case-0-f ()
208 ;; Bpushhandler Bpophandler 208 ;; Bpushhandler Bpophandler
@@ -264,7 +264,7 @@
264 (% a b))) 264 (% a b)))
265 265
266(defun comp-tests-doc-f () 266(defun comp-tests-doc-f ()
267 "A nice docstring" 267 "A nice docstring."
268 t) 268 t)
269 269
270(defun comp-test-interactive-form0-f (dir) 270(defun comp-test-interactive-form0-f (dir)
@@ -479,7 +479,7 @@
479 family))) 479 family)))
480 480
481(defun comp-test-46670-1-f (_) 481(defun comp-test-46670-1-f (_)
482 "foo") 482 "Foo.")
483 483
484(defun comp-test-46670-2-f (s) 484(defun comp-test-46670-2-f (s)
485 (and (equal (comp-test-46670-1-f (length s)) s) 485 (and (equal (comp-test-46670-1-f (length s)) s)
@@ -647,7 +647,7 @@
647 (?> 2)))) 647 (?> 2))))
648 648
649(defun comp-test-big-interactive (filename &optional force arg load) 649(defun comp-test-big-interactive (filename &optional force arg load)
650 ;; Check non trivial interactive form using `byte-recompile-file'. 650 "Check non trivial interactive form using `byte-recompile-file'."
651 (interactive 651 (interactive
652 (let ((file buffer-file-name) 652 (let ((file buffer-file-name)
653 (file-name nil) 653 (file-name nil)
@@ -683,17 +683,17 @@
683 683
684(defun comp-test-no-return-1 (x) 684(defun comp-test-no-return-1 (x)
685 (while x 685 (while x
686 (error "foo"))) 686 (error "Foo")))
687 687
688(defun comp-test-no-return-2 (x) 688(defun comp-test-no-return-2 (x)
689 (cond 689 (cond
690 ((eql x '2) t) 690 ((eql x '2) t)
691 ((error "bar") nil))) 691 ((error "Bar") nil)))
692 692
693(defun comp-test-no-return-3 ()) 693(defun comp-test-no-return-3 ())
694(defun comp-test-no-return-4 (x) 694(defun comp-test-no-return-4 (x)
695 (when x 695 (when x
696 (error "foo") 696 (error "Foo")
697 (while (comp-test-no-return-3) 697 (while (comp-test-no-return-3)
698 (comp-test-no-return-3)))) 698 (comp-test-no-return-3))))
699 699
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index fb9441eb66e..f1778b38568 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -1167,7 +1167,7 @@ Return a list of results."
1167 1167
1168 ;; 49 1168 ;; 49
1169 ((defun comp-tests-ret-type-spec-f () 1169 ((defun comp-tests-ret-type-spec-f ()
1170 (error "foo")) 1170 (error "Foo"))
1171 nil) 1171 nil)
1172 1172
1173 ;; 50 1173 ;; 50
@@ -1373,7 +1373,7 @@ Return a list of results."
1373 1373
1374(defun comp-tests-pure-checker-1 (_) 1374(defun comp-tests-pure-checker-1 (_)
1375 "Check that inside `comp-tests-pure-caller-f' `comp-tests-pure-callee-f' is 1375 "Check that inside `comp-tests-pure-caller-f' `comp-tests-pure-callee-f' is
1376 folded." 1376folded."
1377 (should 1377 (should
1378 (cl-notany 1378 (cl-notany
1379 #'identity 1379 #'identity
diff --git a/test/src/data-tests.el b/test/src/data-tests.el
index b1e5fa0767c..03dfae8cc3c 100644
--- a/test/src/data-tests.el
+++ b/test/src/data-tests.el
@@ -26,10 +26,10 @@
26(defconst data-tests--float-greater-than-fixnums (+ 1.0 most-positive-fixnum) 26(defconst data-tests--float-greater-than-fixnums (+ 1.0 most-positive-fixnum)
27 "A floating-point value that is greater than all fixnums. 27 "A floating-point value that is greater than all fixnums.
28It is also as small as conveniently possible, to make the tests sharper. 28It is also as small as conveniently possible, to make the tests sharper.
29Adding 1.0 to most-positive-fixnum should suffice on all 29Adding 1.0 to `most-positive-fixnum' should suffice on all
30practical Emacs platforms, since the result is a power of 2 and 30practical Emacs platforms, since the result is a power of 2 and
31this is exactly representable and is greater than 31this is exactly representable and is greater than
32most-positive-fixnum, which is just less than a power of 2.") 32`most-positive-fixnum', which is just less than a power of 2.")
33 33
34(ert-deftest data-tests-= () 34(ert-deftest data-tests-= ()
35 (should-error (=)) 35 (should-error (=))
@@ -204,11 +204,11 @@ most-positive-fixnum, which is just less than a power of 2.")
204 ""))) 204 "")))
205 205
206(defun test-bool-vector-count-consecutive-tc (desc) 206(defun test-bool-vector-count-consecutive-tc (desc)
207 "Run a test case for bool-vector-count-consecutive. 207 "Run a test case for `bool-vector-count-consecutive'.
208DESC is a string describing the test. It is a sequence of 208DESC is a string describing the test. It is a sequence of
209hexadecimal digits describing the bool vector. We exhaustively 209hexadecimal digits describing the bool vector. We exhaustively
210test all counts at all possible positions in the vector by 210test all counts at all possible positions in the vector by
211comparing the subr with a much slower lisp implementation." 211comparing the subr with a much slower Lisp implementation."
212 (let ((bv (test-bool-vector-bv-from-hex-string desc))) 212 (let ((bv (test-bool-vector-bv-from-hex-string desc)))
213 (cl-loop 213 (cl-loop
214 for lf in '(nil t) 214 for lf in '(nil t)
@@ -338,7 +338,7 @@ comparing the subr with a much slower lisp implementation."
338 (should (eq binding-test-some-local 'local)))) 338 (should (eq binding-test-some-local 'local))))
339 339
340(ert-deftest binding-test-setq-default () 340(ert-deftest binding-test-setq-default ()
341 "Test that a setq-default has no effect when there is a local binding." 341 "Test that a `setq-default' has no effect when there is a local binding."
342 (with-current-buffer binding-test-buffer-B 342 (with-current-buffer binding-test-buffer-B
343 ;; This variable is not local in this buffer. 343 ;; This variable is not local in this buffer.
344 (let ((binding-test-some-local 'something-else)) 344 (let ((binding-test-some-local 'something-else))
@@ -399,28 +399,28 @@ comparing the subr with a much slower lisp implementation."
399 (eq binding-test-some-local 'outer)))))) 399 (eq binding-test-some-local 'outer))))))
400 400
401(ert-deftest binding-test-defvar-bool () 401(ert-deftest binding-test-defvar-bool ()
402 "Test DEFVAR_BOOL" 402 "Test DEFVAR_BOOL."
403 (let ((display-hourglass 5)) 403 (let ((display-hourglass 5))
404 (should (eq display-hourglass t)))) 404 (should (eq display-hourglass t))))
405 405
406(ert-deftest binding-test-defvar-int () 406(ert-deftest binding-test-defvar-int ()
407 "Test DEFVAR_INT" 407 "Test DEFVAR_INT."
408 (should-error (setq gc-cons-threshold 5.0) :type 'wrong-type-argument)) 408 (should-error (setq gc-cons-threshold 5.0) :type 'wrong-type-argument))
409 409
410(ert-deftest binding-test-set-constant-t () 410(ert-deftest binding-test-set-constant-t ()
411 "Test setting the constant t" 411 "Test setting the constant t."
412 (with-no-warnings (should-error (setq t 'bob) :type 'setting-constant))) 412 (with-no-warnings (should-error (setq t 'bob) :type 'setting-constant)))
413 413
414(ert-deftest binding-test-set-constant-nil () 414(ert-deftest binding-test-set-constant-nil ()
415 "Test setting the constant nil" 415 "Test setting the constant nil."
416 (with-no-warnings (should-error (setq nil 'bob) :type 'setting-constant))) 416 (with-no-warnings (should-error (setq nil 'bob) :type 'setting-constant)))
417 417
418(ert-deftest binding-test-set-constant-keyword () 418(ert-deftest binding-test-set-constant-keyword ()
419 "Test setting a keyword constant" 419 "Test setting a keyword constant."
420 (with-no-warnings (should-error (setq :keyword 'bob) :type 'setting-constant))) 420 (with-no-warnings (should-error (setq :keyword 'bob) :type 'setting-constant)))
421 421
422(ert-deftest binding-test-set-constant-nil () 422(ert-deftest binding-test-set-constant-nil ()
423 "Test setting a keyword to itself" 423 "Test setting a keyword to itself."
424 (with-no-warnings (should (setq :keyword :keyword)))) 424 (with-no-warnings (should (setq :keyword :keyword))))
425 425
426(ert-deftest data-tests--set-default-per-buffer () 426(ert-deftest data-tests--set-default-per-buffer ()
diff --git a/test/src/decompress-tests.el b/test/src/decompress-tests.el
index 520445cca5a..1d25cf2f66b 100644
--- a/test/src/decompress-tests.el
+++ b/test/src/decompress-tests.el
@@ -42,4 +42,4 @@
42 42
43(provide 'decompress-tests) 43(provide 'decompress-tests)
44 44
45;;; decompress-tests.el ends here. 45;;; decompress-tests.el ends here
diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el
index 438ebebb769..4143503aa18 100644
--- a/test/src/fileio-tests.el
+++ b/test/src/fileio-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21 23
22(defun try-link (target link) 24(defun try-link (target link)
@@ -97,7 +99,7 @@ Also check that an encoding error can appear in a symlink."
97 (should (equal (file-name-as-directory "D:/abc//") "d:/abc//"))) 99 (should (equal (file-name-as-directory "D:/abc//") "d:/abc//")))
98 100
99(ert-deftest fileio-tests--relative-HOME () 101(ert-deftest fileio-tests--relative-HOME ()
100 "Test that expand-file-name works even when HOME is relative." 102 "Test that `expand-file-name' works even when HOME is relative."
101 (let ((process-environment (copy-sequence process-environment))) 103 (let ((process-environment (copy-sequence process-environment)))
102 (setenv "HOME" "a/b/c") 104 (setenv "HOME" "a/b/c")
103 (should (equal (expand-file-name "~/foo") 105 (should (equal (expand-file-name "~/foo")
@@ -128,7 +130,7 @@ Also check that an encoding error can appear in a symlink."
128 (if f (delete-file f))))) 130 (if f (delete-file f)))))
129 131
130(ert-deftest fileio-tests--relative-default-directory () 132(ert-deftest fileio-tests--relative-default-directory ()
131 "Test expand-file-name when default-directory is relative." 133 "Test `expand-file-name' when `default-directory' is relative."
132 (let ((default-directory "some/relative/name")) 134 (let ((default-directory "some/relative/name"))
133 (should (file-name-absolute-p (expand-file-name "foo")))) 135 (should (file-name-absolute-p (expand-file-name "foo"))))
134 (let* ((default-directory "~foo") 136 (let* ((default-directory "~foo")
@@ -137,7 +139,7 @@ Also check that an encoding error can appear in a symlink."
137 (not (eq (aref name 0) ?~)))))) 139 (not (eq (aref name 0) ?~))))))
138 140
139(ert-deftest fileio-test--expand-file-name-null-bytes () 141(ert-deftest fileio-test--expand-file-name-null-bytes ()
140 "Test that expand-file-name checks for null bytes in filenames." 142 "Test that `expand-file-name' checks for null bytes in filenames."
141 (should-error (expand-file-name (concat "file" (char-to-string ?\0) ".txt")) 143 (should-error (expand-file-name (concat "file" (char-to-string ?\0) ".txt"))
142 :type 'wrong-type-argument) 144 :type 'wrong-type-argument)
143 (should-error (expand-file-name "file.txt" (concat "dir" (char-to-string ?\0))) 145 (should-error (expand-file-name "file.txt" (concat "dir" (char-to-string ?\0)))
@@ -146,7 +148,7 @@ Also check that an encoding error can appear in a symlink."
146 (should-error (expand-file-name "file.txt") :type 'wrong-type-argument))) 148 (should-error (expand-file-name "file.txt") :type 'wrong-type-argument)))
147 149
148(ert-deftest fileio-tests--file-name-absolute-p () 150(ert-deftest fileio-tests--file-name-absolute-p ()
149 "Test file-name-absolute-p." 151 "Test `file-name-absolute-p'."
150 (dolist (suffix '("" "/" "//" "/foo" "/foo/" "/foo//" "/foo/bar")) 152 (dolist (suffix '("" "/" "//" "/foo" "/foo/" "/foo//" "/foo/bar"))
151 (unless (string-equal suffix "") 153 (unless (string-equal suffix "")
152 (should (file-name-absolute-p suffix))) 154 (should (file-name-absolute-p suffix)))
@@ -157,7 +159,7 @@ Also check that an encoding error can appear in a symlink."
157 (should (not (file-name-absolute-p (concat "~nosuchuser" suffix))))))) 159 (should (not (file-name-absolute-p (concat "~nosuchuser" suffix)))))))
158 160
159(ert-deftest fileio-tests--circular-after-insert-file-functions () 161(ert-deftest fileio-tests--circular-after-insert-file-functions ()
160 "Test after-insert-file-functions as a circular list." 162 "Test `after-insert-file-functions' as a circular list."
161 (let ((f (make-temp-file "fileio")) 163 (let ((f (make-temp-file "fileio"))
162 (after-insert-file-functions (list 'identity))) 164 (after-insert-file-functions (list 'identity)))
163 (setcdr after-insert-file-functions after-insert-file-functions) 165 (setcdr after-insert-file-functions after-insert-file-functions)
diff --git a/test/src/floatfns-tests.el b/test/src/floatfns-tests.el
index 4a3c03d833e..47fa1941626 100644
--- a/test/src/floatfns-tests.el
+++ b/test/src/floatfns-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21 23
22(ert-deftest divide-extreme-sign () 24(ert-deftest divide-extreme-sign ()
@@ -125,3 +127,5 @@
125 (ash (1- (ash 1 53)) 2045)))) 127 (ash (1- (ash 1 53)) 2045))))
126 128
127(provide 'floatfns-tests) 129(provide 'floatfns-tests)
130
131;;; floatfns-tests.el ends here
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el
index bd5a4358e65..57594572094 100644
--- a/test/src/fns-tests.el
+++ b/test/src/fns-tests.el
@@ -1114,3 +1114,5 @@
1114 (should (= (line-number-at-pos nil) 11)) 1114 (should (= (line-number-at-pos nil) 11))
1115 (should-error (line-number-at-pos -1)) 1115 (should-error (line-number-at-pos -1))
1116 (should-error (line-number-at-pos 100)))) 1116 (should-error (line-number-at-pos 100))))
1117
1118;;; fns-tests.el ends here
diff --git a/test/src/indent-tests.el b/test/src/indent-tests.el
index 6a3f1a5c95f..6cfe64c07e4 100644
--- a/test/src/indent-tests.el
+++ b/test/src/indent-tests.el
@@ -57,3 +57,5 @@
57 (move-to-column 12 t) 57 (move-to-column 12 t)
58 (buffer-substring-no-properties 1 14)) 58 (buffer-substring-no-properties 1 14))
59 "\txxx \tLine"))) 59 "\txxx \tLine")))
60
61;;; indent-tests.el ends here
diff --git a/test/src/inotify-tests.el b/test/src/inotify-tests.el
index 5572c7d7a0f..8aab7eeb30a 100644
--- a/test/src/inotify-tests.el
+++ b/test/src/inotify-tests.el
@@ -70,4 +70,4 @@
70 70
71(provide 'inotify-tests) 71(provide 'inotify-tests)
72 72
73;;; inotify-tests.el ends here. 73;;; inotify-tests.el ends here
diff --git a/test/src/lcms-tests.el b/test/src/lcms-tests.el
index 40a48f1e9bb..d2d137e9bd5 100644
--- a/test/src/lcms-tests.el
+++ b/test/src/lcms-tests.el
@@ -95,7 +95,7 @@ B is considered the exact value."
95 '(0.29902 0.31485 1.0)))) 95 '(0.29902 0.31485 1.0))))
96 96
97(ert-deftest lcms-roundtrip () 97(ert-deftest lcms-roundtrip ()
98 "Test accuracy of converting to and from different color spaces" 98 "Test accuracy of converting to and from different color spaces."
99 (skip-unless (featurep 'lcms2)) 99 (skip-unless (featurep 'lcms2))
100 (should 100 (should
101 (let ((color '(.5 .3 .7))) 101 (let ((color '(.5 .3 .7)))
@@ -109,7 +109,7 @@ B is considered the exact value."
109 0.0001)))) 109 0.0001))))
110 110
111(ert-deftest lcms-ciecam02-gold () 111(ert-deftest lcms-ciecam02-gold ()
112 "Test CIE CAM02 JCh gold values" 112 "Test CIE CAM02 JCh gold values."
113 (skip-unless (featurep 'lcms2)) 113 (skip-unless (featurep 'lcms2))
114 (should 114 (should
115 (lcms-triple-approx-p 115 (lcms-triple-approx-p
diff --git a/test/src/marker-tests.el b/test/src/marker-tests.el
index 234a0b35ea7..cf8e82cd560 100644
--- a/test/src/marker-tests.el
+++ b/test/src/marker-tests.el
@@ -57,4 +57,4 @@
57 (set-marker marker-2 marker-1) 57 (set-marker marker-2 marker-1)
58 (should (goto-char marker-2)))) 58 (should (goto-char marker-2))))
59 59
60;;; marker-tests.el ends here. 60;;; marker-tests.el ends here
diff --git a/test/src/minibuf-tests.el b/test/src/minibuf-tests.el
index feea1c112bf..51d9c67453e 100644
--- a/test/src/minibuf-tests.el
+++ b/test/src/minibuf-tests.el
@@ -414,8 +414,8 @@
414 (let ((inhibit-interaction t)) 414 (let ((inhibit-interaction t))
415 (should-error (read-from-minibuffer "foo: ") :type 'inhibited-interaction) 415 (should-error (read-from-minibuffer "foo: ") :type 'inhibited-interaction)
416 416
417 (should-error (y-or-n-p "foo: ") :type 'inhibited-interaction) 417 (should-error (y-or-n-p "Foo?") :type 'inhibited-interaction)
418 (should-error (yes-or-no-p "foo: ") :type 'inhibited-interaction) 418 (should-error (yes-or-no-p "Foo?") :type 'inhibited-interaction)
419 (should-error (read-no-blanks-input "foo: ") :type 'inhibited-interaction) 419 (should-error (read-no-blanks-input "foo: ") :type 'inhibited-interaction)
420 420
421 ;; See that we get the expected error. 421 ;; See that we get the expected error.
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index 9bab523708e..e39f57d23be 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -745,7 +745,7 @@ Return nil if that can't be determined."
745 process-tests--EMFILE-message) 745 process-tests--EMFILE-message)
746 746
747(ert-deftest process-tests/sentinel-called () 747(ert-deftest process-tests/sentinel-called ()
748 "Check that sentinels are called after processes finish" 748 "Check that sentinels are called after processes finish."
749 (let ((command (process-tests--emacs-command))) 749 (let ((command (process-tests--emacs-command)))
750 (skip-unless command) 750 (skip-unless command)
751 (dolist (conn-type '(pipe pty)) 751 (dolist (conn-type '(pipe pty))
diff --git a/test/src/regex-emacs-tests.el b/test/src/regex-emacs-tests.el
index 0607eacf397..71e3189443e 100644
--- a/test/src/regex-emacs-tests.el
+++ b/test/src/regex-emacs-tests.el
@@ -279,11 +279,11 @@ on success"
279 279
280(defconst regex-tests-re-even-escapes 280(defconst regex-tests-re-even-escapes
281 "\\(?:^\\|[^\\]\\)\\(?:\\\\\\\\\\)*" 281 "\\(?:^\\|[^\\]\\)\\(?:\\\\\\\\\\)*"
282 "Regex that matches an even number of \\ characters") 282 "Regex that matches an even number of \\ characters.")
283 283
284(defconst regex-tests-re-odd-escapes 284(defconst regex-tests-re-odd-escapes
285 (concat regex-tests-re-even-escapes "\\\\") 285 (concat regex-tests-re-even-escapes "\\\\")
286 "Regex that matches an odd number of \\ characters") 286 "Regex that matches an odd number of \\ characters.")
287 287
288 288
289(defun regex-tests-unextend (pattern) 289(defun regex-tests-unextend (pattern)
@@ -396,9 +396,9 @@ pattern)"
396 ;; emacs matches non-greedy regex ab.*? non-greedily 396 ;; emacs matches non-greedy regex ab.*? non-greedily
397 639 677 712 397 639 677 712
398 ] 398 ]
399 "Line numbers in the boost test that should be skipped. These 399 "Line numbers in the boost test that should be skipped.
400are false-positive test failures that represent known/benign 400These are false-positive test failures that represent
401differences in behavior.") 401known/benign differences in behavior.")
402 402
403;; - Format 403;; - Format
404;; - Comments are lines starting with ; 404;; - Comments are lines starting with ;
@@ -480,9 +480,9 @@ differences in behavior.")
480 ;; ambiguous groupings are ambiguous 480 ;; ambiguous groupings are ambiguous
481 610 611 1154 1157 1160 1168 1171 1176 1179 1182 1185 1188 1193 1196 1203 481 610 611 1154 1157 1160 1168 1171 1176 1179 1182 1185 1188 1193 1196 1203
482 ] 482 ]
483 "Line numbers in the PCRE test that should be skipped. These 483 "Line numbers in the PCRE test that should be skipped.
484are false-positive test failures that represent known/benign 484These are false-positive test failures that represent
485differences in behavior.") 485known/benign differences in behavior.")
486 486
487;; - Format 487;; - Format
488;; 488;;
@@ -562,9 +562,9 @@ differences in behavior.")
562 ;; fails to match 562 ;; fails to match
563 168 563 168
564 ] 564 ]
565 "Line numbers in the PTESTS test that should be skipped. These 565 "Line numbers in the PTESTS test that should be skipped.
566are false-positive test failures that represent known/benign 566These are false-positive test failures that represent
567differences in behavior.") 567known/benign differences in behavior.")
568 568
569;; - Format 569;; - Format
570;; - fields separated by ¦ (note: this is not a |) 570;; - fields separated by ¦ (note: this is not a |)
@@ -621,9 +621,9 @@ differences in behavior.")
621 ;; emacs is more stringent with regexes involving unbalanced ) 621 ;; emacs is more stringent with regexes involving unbalanced )
622 67 622 67
623 ] 623 ]
624 "Line numbers in the TESTS test that should be skipped. These 624 "Line numbers in the TESTS test that should be skipped.
625are false-positive test failures that represent known/benign 625These are false-positive test failures that represent
626differences in behavior.") 626known/benign differences in behavior.")
627 627
628;; - Format 628;; - Format
629;; - fields separated by :. Watch for [\[:xxx:]] 629;; - fields separated by :. Watch for [\[:xxx:]]
diff --git a/test/src/textprop-tests.el b/test/src/textprop-tests.el
index b083588e645..c001579c474 100644
--- a/test/src/textprop-tests.el
+++ b/test/src/textprop-tests.el
@@ -69,4 +69,4 @@
69 (null stack))))) 69 (null stack)))))
70 70
71(provide 'textprop-tests) 71(provide 'textprop-tests)
72;; textprop-tests.el ends here. 72;;; textprop-tests.el ends here
diff --git a/test/src/thread-tests.el b/test/src/thread-tests.el
index fc7bc7441b7..52eace7e9d2 100644
--- a/test/src/thread-tests.el
+++ b/test/src/thread-tests.el
@@ -70,12 +70,12 @@
70 (thread-live-p (make-thread #'ignore)))) 70 (thread-live-p (make-thread #'ignore))))
71 71
72(ert-deftest threads-all-threads () 72(ert-deftest threads-all-threads ()
73 "Simple test for all-threads." 73 "Simple test for `all-threads'."
74 (skip-unless (featurep 'threads)) 74 (skip-unless (featurep 'threads))
75 (should (listp (all-threads)))) 75 (should (listp (all-threads))))
76 76
77(ert-deftest threads-main-thread () 77(ert-deftest threads-main-thread ()
78 "Simple test for all-threads." 78 "Simple test for `all-threads'."
79 (skip-unless (featurep 'threads)) 79 (skip-unless (featurep 'threads))
80 (should (eq main-thread (car (all-threads))))) 80 (should (eq main-thread (car (all-threads)))))
81 81
@@ -155,7 +155,7 @@
155 (should (eq (type-of (make-mutex)) 'mutex))) 155 (should (eq (type-of (make-mutex)) 'mutex)))
156 156
157(ert-deftest threads-mutex-lock-unlock () 157(ert-deftest threads-mutex-lock-unlock ()
158 "Test mutex-lock and unlock." 158 "Test `mutex-lock' and unlock."
159 (skip-unless (featurep 'threads)) 159 (skip-unless (featurep 'threads))
160 (should 160 (should
161 (let ((mx (make-mutex))) 161 (let ((mx (make-mutex)))
@@ -392,4 +392,4 @@
392 (let ((th (make-thread 'ignore))) 392 (let ((th (make-thread 'ignore)))
393 (should-not (equal th main-thread)))) 393 (should-not (equal th main-thread))))
394 394
395;;; threads.el ends here 395;;; thread-tests.el ends here
diff --git a/test/src/timefns-tests.el b/test/src/timefns-tests.el
index 0a450a7573f..bba9b3fcd8c 100644
--- a/test/src/timefns-tests.el
+++ b/test/src/timefns-tests.el
@@ -241,3 +241,5 @@ a fixed place on the right and are padded on the left."
241 (let ((xdiv (/ x divisor))) 241 (let ((xdiv (/ x divisor)))
242 (should (= xdiv (float-time (time-convert xdiv t)))))) 242 (should (= xdiv (float-time (time-convert xdiv t))))))
243 (setq x (* x 2))))) 243 (setq x (* x 2)))))
244
245;;; timefns-tests.el ends here
diff --git a/test/src/xfaces-tests.el b/test/src/xfaces-tests.el
index 0a7ef55b2b6..cba706f4535 100644
--- a/test/src/xfaces-tests.el
+++ b/test/src/xfaces-tests.el
@@ -17,6 +17,8 @@
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code:
21
20(require 'ert) 22(require 'ert)
21 23
22(ert-deftest xfaces-color-distance () 24(ert-deftest xfaces-color-distance ()
@@ -48,3 +50,5 @@
48 (should (equal (color-values-from-color-spec "rgbi:0/0.5/10") nil))) 50 (should (equal (color-values-from-color-spec "rgbi:0/0.5/10") nil)))
49 51
50(provide 'xfaces-tests) 52(provide 'xfaces-tests)
53
54;;; xfaces-tests.el ends here
diff --git a/test/src/xml-tests.el b/test/src/xml-tests.el
index a35b4d2ccc8..7c4ca396f70 100644
--- a/test/src/xml-tests.el
+++ b/test/src/xml-tests.el
@@ -52,4 +52,4 @@
52 (should (equal (cdr test) 52 (should (equal (cdr test)
53 (libxml-parse-xml-region (point-min) (point-max))))))) 53 (libxml-parse-xml-region (point-min) (point-max)))))))
54 54
55;;; libxml-tests.el ends here 55;;; xml-tests.el ends here