aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Kangas2022-07-13 13:00:31 +0200
committerStefan Kangas2022-07-13 13:04:22 +0200
commitba0871bef1e7d321f1124a6ad20e9be158a976dd (patch)
treef8e0ff481dbc96e0a2cbcd188d21728bced77849 /test
parente3e7f31faa69d173c000ddf9f3c77e9cf34efee0 (diff)
downloademacs-ba0871bef1e7d321f1124a6ad20e9be158a976dd.tar.gz
emacs-ba0871bef1e7d321f1124a6ad20e9be158a976dd.zip
; Fix typos: prefer American spelling
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog.12
-rw-r--r--test/lisp/calc/calc-tests.el2
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el8
-rw-r--r--test/lisp/so-long-tests/spelling-tests.el2
4 files changed, 7 insertions, 7 deletions
diff --git a/test/ChangeLog.1 b/test/ChangeLog.1
index fe7e6626cbf..328609038a7 100644
--- a/test/ChangeLog.1
+++ b/test/ChangeLog.1
@@ -65,7 +65,7 @@
65 65
662015-03-10 Paul Eggert <eggert@cs.ucla.edu> 662015-03-10 Paul Eggert <eggert@cs.ucla.edu>
67 67
68 Prefer "initialize" to "initialise" 68 Prefer "initialize"
69 * indent/js-indent-init-t.js: Rename from 69 * indent/js-indent-init-t.js: Rename from
70 indent/js-indent-first-initialiser-t.js. 70 indent/js-indent-first-initialiser-t.js.
71 * indent/js-indent-init-dynamic.js: Rename from 71 * indent/js-indent-init-dynamic.js: Rename from
diff --git a/test/lisp/calc/calc-tests.el b/test/lisp/calc/calc-tests.el
index 5f9e02f774d..abedbb9712a 100644
--- a/test/lisp/calc/calc-tests.el
+++ b/test/lisp/calc/calc-tests.el
@@ -445,7 +445,7 @@ An existing calc stack is reused, otherwise a new one is created."
445 (t ; n<k<0 445 (t ; n<k<0
446 0)))) 446 0))))
447 ((natnump k) 447 ((natnump k)
448 ;; Generalisation for any n, integral k≥0: use falling product 448 ;; Generalization 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"))))
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index 8a09c545914..a97473e7de4 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -38,7 +38,7 @@
38 bytecomp-test-var) 38 bytecomp-test-var)
39 39
40(defun bytecomp-test-identity (x) 40(defun bytecomp-test-identity (x)
41 "Identity, but hidden from some optimisations." 41 "Identity, but hidden from some optimizations."
42 x) 42 x)
43 43
44(defmacro bytecomp-test-loop (outer1 outer2 inner1 inner2) 44(defmacro bytecomp-test-loop (outer1 outer2 inner1 inner2)
@@ -556,7 +556,7 @@ inner loops respectively."
556 ((not x) 3))) 556 ((not x) 3)))
557 '("a" "b" "c" "d" nil)) 557 '("a" "b" "c" "d" nil))
558 558
559 ;; `let' and `let*' optimisations with body being constant or variable 559 ;; `let' and `let*' optimizations with body being constant or variable
560 (let* (a 560 (let* (a
561 (b (progn (setq a (cons 1 a)) 2)) 561 (b (progn (setq a (cons 1 a)) 2))
562 (c (1+ b)) 562 (c (1+ b))
@@ -582,7 +582,7 @@ inner loops respectively."
582 (let* (x y) 582 (let* (x y)
583 'a) 583 'a)
584 584
585 ;; Check empty-list optimisations. 585 ;; Check empty-list optimizations.
586 (mapcar (lambda (x) (member x nil)) '("a" 2 nil)) 586 (mapcar (lambda (x) (member x nil)) '("a" 2 nil))
587 (mapcar (lambda (x) (memql x nil)) '(a 2 nil)) 587 (mapcar (lambda (x) (memql x nil)) '(a 2 nil))
588 (mapcar (lambda (x) (memq x nil)) '(a nil)) 588 (mapcar (lambda (x) (memq x nil)) '(a nil))
@@ -597,7 +597,7 @@ inner loops respectively."
597 (list (mapcar (lambda (x) (assoc (setq n (1+ n)) nil)) '(a "nil")) 597 (list (mapcar (lambda (x) (assoc (setq n (1+ n)) nil)) '(a "nil"))
598 n)) 598 n))
599 599
600 ;; Exercise variable-aliasing optimisations. 600 ;; Exercise variable-aliasing optimizations.
601 (let ((a (list 1))) 601 (let ((a (list 1)))
602 (let ((b a)) 602 (let ((b a))
603 (let ((a (list 2))) 603 (let ((a (list 2)))
diff --git a/test/lisp/so-long-tests/spelling-tests.el b/test/lisp/so-long-tests/spelling-tests.el
index eb1014dd8a7..14136cd4607 100644
--- a/test/lisp/so-long-tests/spelling-tests.el
+++ b/test/lisp/so-long-tests/spelling-tests.el
@@ -57,7 +57,7 @@
57 (unwind-protect 57 (unwind-protect
58 (cl-letf (((symbol-function 'ispell-command-loop) 58 (cl-letf (((symbol-function 'ispell-command-loop)
59 (lambda (_miss _guess word _start _end) 59 (lambda (_miss _guess word _start _end)
60 (message "Unrecognised word: %s." word) 60 (message "Unrecognized word: %s." word)
61 (throw 'mistake t)))) 61 (throw 'mistake t))))
62 (catch 'mistake 62 (catch 'mistake
63 (find-library "so-long") 63 (find-library "so-long")