diff options
| author | Stefan Kangas | 2021-09-26 01:53:56 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-09-26 17:53:23 +0200 |
| commit | 8bb28e740dd2cc8058d7833dd60b0ef9a8765c1b (patch) | |
| tree | 6daad156b285e27c95d4afb3f7d0e4773032961b /test/src | |
| parent | 4cc43449432427817400bad12e7ef722e6591a21 (diff) | |
| download | emacs-8bb28e740dd2cc8058d7833dd60b0ef9a8765c1b.tar.gz emacs-8bb28e740dd2cc8058d7833dd60b0ef9a8765c1b.zip | |
; Minor stylistic checkdoc fixes in test/**/*.el
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/alloc-tests.el | 2 | ||||
| -rw-r--r-- | test/src/character-tests.el | 2 | ||||
| -rw-r--r-- | test/src/charset-tests.el | 4 | ||||
| -rw-r--r-- | test/src/coding-tests.el | 2 | ||||
| -rw-r--r-- | test/src/comp-resources/comp-test-funcs.el | 14 | ||||
| -rw-r--r-- | test/src/comp-tests.el | 4 | ||||
| -rw-r--r-- | test/src/data-tests.el | 22 | ||||
| -rw-r--r-- | test/src/decompress-tests.el | 2 | ||||
| -rw-r--r-- | test/src/fileio-tests.el | 12 | ||||
| -rw-r--r-- | test/src/floatfns-tests.el | 4 | ||||
| -rw-r--r-- | test/src/fns-tests.el | 2 | ||||
| -rw-r--r-- | test/src/indent-tests.el | 2 | ||||
| -rw-r--r-- | test/src/inotify-tests.el | 2 | ||||
| -rw-r--r-- | test/src/lcms-tests.el | 4 | ||||
| -rw-r--r-- | test/src/marker-tests.el | 2 | ||||
| -rw-r--r-- | test/src/minibuf-tests.el | 4 | ||||
| -rw-r--r-- | test/src/process-tests.el | 2 | ||||
| -rw-r--r-- | test/src/regex-emacs-tests.el | 28 | ||||
| -rw-r--r-- | test/src/textprop-tests.el | 2 | ||||
| -rw-r--r-- | test/src/thread-tests.el | 8 | ||||
| -rw-r--r-- | test/src/timefns-tests.el | 2 | ||||
| -rw-r--r-- | test/src/xfaces-tests.el | 4 | ||||
| -rw-r--r-- | test/src/xml-tests.el | 2 |
23 files changed, 77 insertions, 55 deletions
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." | 1376 | folded." |
| 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. |
| 28 | It is also as small as conveniently possible, to make the tests sharper. | 28 | It is also as small as conveniently possible, to make the tests sharper. |
| 29 | Adding 1.0 to most-positive-fixnum should suffice on all | 29 | Adding 1.0 to `most-positive-fixnum' should suffice on all |
| 30 | practical Emacs platforms, since the result is a power of 2 and | 30 | practical Emacs platforms, since the result is a power of 2 and |
| 31 | this is exactly representable and is greater than | 31 | this is exactly representable and is greater than |
| 32 | most-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'. |
| 208 | DESC is a string describing the test. It is a sequence of | 208 | DESC is a string describing the test. It is a sequence of |
| 209 | hexadecimal digits describing the bool vector. We exhaustively | 209 | hexadecimal digits describing the bool vector. We exhaustively |
| 210 | test all counts at all possible positions in the vector by | 210 | test all counts at all possible positions in the vector by |
| 211 | comparing the subr with a much slower lisp implementation." | 211 | comparing 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. |
| 400 | are false-positive test failures that represent known/benign | 400 | These are false-positive test failures that represent |
| 401 | differences in behavior.") | 401 | known/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. |
| 484 | are false-positive test failures that represent known/benign | 484 | These are false-positive test failures that represent |
| 485 | differences in behavior.") | 485 | known/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. |
| 566 | are false-positive test failures that represent known/benign | 566 | These are false-positive test failures that represent |
| 567 | differences in behavior.") | 567 | known/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. |
| 625 | are false-positive test failures that represent known/benign | 625 | These are false-positive test failures that represent |
| 626 | differences in behavior.") | 626 | known/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 |