aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Eggert2019-12-10 20:04:36 -0800
committerPaul Eggert2019-12-10 20:05:49 -0800
commitb0f20651e3cbb8a66f11ffae4c18634019c20cd4 (patch)
tree067bcb8fa529b4afee6d189f409faf16bd437810 /test
parent0940296ebe56ebdf9c32e94191d4f0b18006a910 (diff)
downloademacs-b0f20651e3cbb8a66f11ffae4c18634019c20cd4.tar.gz
emacs-b0f20651e3cbb8a66f11ffae4c18634019c20cd4.zip
; Spelling fixes
Diffstat (limited to 'test')
-rw-r--r--test/lisp/abbrev-tests.el2
-rw-r--r--test/lisp/cedet/semantic-utest-ia.el2
-rw-r--r--test/lisp/cedet/srecode-utest-getset.el1
-rw-r--r--test/lisp/emacs-lisp/cl-macs-tests.el4
-rw-r--r--test/lisp/emacs-lisp/regexp-opt-tests.el2
-rw-r--r--test/lisp/vc/log-edit-tests.el21
-rw-r--r--test/manual/cedet/tests/test-fmt.cpp10
-rw-r--r--test/manual/cedet/tests/test.srt2
-rw-r--r--test/manual/etags/cp-src/functions.cpp6
-rw-r--r--test/src/buffer-tests.el6
-rw-r--r--test/src/fns-tests.el8
11 files changed, 31 insertions, 33 deletions
diff --git a/test/lisp/abbrev-tests.el b/test/lisp/abbrev-tests.el
index 2750e9a6263..8eee0712c22 100644
--- a/test/lisp/abbrev-tests.el
+++ b/test/lisp/abbrev-tests.el
@@ -283,7 +283,7 @@
283 (inverse-add-abbrev table "Global" 1))) 283 (inverse-add-abbrev table "Global" 1)))
284 (should (string= (abbrev-expansion "foo" table) "bar")))) 284 (should (string= (abbrev-expansion "foo" table) "bar"))))
285 285
286(ert-deftest inverse-add-abbrev-skips-trailing-nonword/postiive-arg () 286(ert-deftest inverse-add-abbrev-skips-trailing-nonword/positive-arg ()
287 "Test that adding an inverse abbrev skips trailing nonword characters." 287 "Test that adding an inverse abbrev skips trailing nonword characters."
288 (let ((table (make-abbrev-table))) 288 (let ((table (make-abbrev-table)))
289 (with-temp-buffer 289 (with-temp-buffer
diff --git a/test/lisp/cedet/semantic-utest-ia.el b/test/lisp/cedet/semantic-utest-ia.el
index 61d7ea370e2..515275591f9 100644
--- a/test/lisp/cedet/semantic-utest-ia.el
+++ b/test/lisp/cedet/semantic-utest-ia.el
@@ -115,7 +115,7 @@
115 (should (file-exists-p tst)) 115 (should (file-exists-p tst))
116 (should-not (semantic-ia-utest tst)))) 116 (should-not (semantic-ia-utest tst))))
117 117
118(ert-deftest semantic-utest-ia-varnamse.java () 118(ert-deftest semantic-utest-ia-varnames.java ()
119 (let ((tst (expand-file-name "testvarnames.java" semantic-utest-test-directory))) 119 (let ((tst (expand-file-name "testvarnames.java" semantic-utest-test-directory)))
120 (should (file-exists-p tst)) 120 (should (file-exists-p tst))
121 (should-not (semantic-ia-utest tst)))) 121 (should-not (semantic-ia-utest tst))))
diff --git a/test/lisp/cedet/srecode-utest-getset.el b/test/lisp/cedet/srecode-utest-getset.el
index d69a195a128..2e82fc9c90a 100644
--- a/test/lisp/cedet/srecode-utest-getset.el
+++ b/test/lisp/cedet/srecode-utest-getset.el
@@ -21,7 +21,6 @@
21;; 21;;
22;; Unit tests for the getset inserter application. 22;; Unit tests for the getset inserter application.
23 23
24;;(require 'cedet-uutil)
25(require 'srecode/semantic) 24(require 'srecode/semantic)
26 25
27;;; Code: 26;;; Code:
diff --git a/test/lisp/emacs-lisp/cl-macs-tests.el b/test/lisp/emacs-lisp/cl-macs-tests.el
index 85230447148..d3b9732b74d 100644
--- a/test/lisp/emacs-lisp/cl-macs-tests.el
+++ b/test/lisp/emacs-lisp/cl-macs-tests.el
@@ -569,14 +569,14 @@ collection clause."
569 finally return result) 569 finally return result)
570 '(2 1 0))) 570 '(2 1 0)))
571 571
572 ;; this nonintuitive result is replicated by clisp 572 ;; this unintuitive result is replicated by clisp
573 (should (equal (cl-loop with result 573 (should (equal (cl-loop with result
574 for x below 3 574 for x below 3
575 and y = (progn (push x result)) 575 and y = (progn (push x result))
576 finally return result) 576 finally return result)
577 '(2 1 0 0))) 577 '(2 1 0 0)))
578 578
579 ;; this nonintuitive result is replicated by clisp 579 ;; this unintuitive result is replicated by clisp
580 (should (equal (cl-loop with result 580 (should (equal (cl-loop with result
581 for x below 3 581 for x below 3
582 and y = (progn (push x result)) then (progn (push (1+ x) result)) 582 and y = (progn (push x result)) then (progn (push (1+ x) result))
diff --git a/test/lisp/emacs-lisp/regexp-opt-tests.el b/test/lisp/emacs-lisp/regexp-opt-tests.el
index 3658964faac..6b94ccb2d5b 100644
--- a/test/lisp/emacs-lisp/regexp-opt-tests.el
+++ b/test/lisp/emacs-lisp/regexp-opt-tests.el
@@ -66,7 +66,7 @@
66 (opt (regexp-opt-test--match-all perm opt-re))) 66 (opt (regexp-opt-test--match-all perm opt-re)))
67 (concat "\n" 67 (concat "\n"
68 (format "Naïve regexp: %s\n" ref-re) 68 (format "Naïve regexp: %s\n" ref-re)
69 (format "Optimised regexp: %s\n" opt-re) 69 (format "Optimized regexp: %s\n" opt-re)
70 (format "Got: %s\n" opt) 70 (format "Got: %s\n" opt)
71 (format "Expected: %s\n" ref)))) 71 (format "Expected: %s\n" ref))))
72 72
diff --git a/test/lisp/vc/log-edit-tests.el b/test/lisp/vc/log-edit-tests.el
index 7d77eca87d2..72d5488ec2e 100644
--- a/test/lisp/vc/log-edit-tests.el
+++ b/test/lisp/vc/log-edit-tests.el
@@ -37,7 +37,7 @@
37\(fun6): 37\(fun6):
38\(fun7): Some prose. 38\(fun7): Some prose.
39\(fun8): A longer description of a complicated change.\ 39\(fun8): A longer description of a complicated change.\
40 Spread over a couple of sentencences.\ 40 Spread over a couple of sentences.\
41 Long enough to be filled for several lines. 41 Long enough to be filled for several lines.
42\(fun9): Etc.") 42\(fun9): Etc.")
43 (goto-char (point-min)) 43 (goto-char (point-min))
@@ -46,7 +46,7 @@
46* dir/file.ext (fun1, fun2, fun3): 46* dir/file.ext (fun1, fun2, fun3):
47* file2.txt (fun4, fun5, fun6, fun7): Some prose. 47* file2.txt (fun4, fun5, fun6, fun7): Some prose.
48\(fun8): A longer description of a complicated change. Spread over a 48\(fun8): A longer description of a complicated change. Spread over a
49couple of sentencences. Long enough to be filled for several lines. 49couple of sentences. Long enough to be filled for several lines.
50\(fun9): Etc.")) 50\(fun9): Etc."))
51 (let ((fill-column 20)) (log-edit-fill-entry)) 51 (let ((fill-column 20)) (log-edit-fill-entry))
52 (should (equal (buffer-string) "\ 52 (should (equal (buffer-string) "\
@@ -59,10 +59,9 @@ Some prose.
59description of a 59description of a
60complicated change. 60complicated change.
61Spread over a couple 61Spread over a couple
62of sentencences. 62of sentences. Long
63Long enough to be 63enough to be filled
64filled for several 64for several lines.
65lines.
66\(fun9): Etc.")) 65\(fun9): Etc."))
67 (let ((fill-column 40)) (log-edit-fill-entry)) 66 (let ((fill-column 40)) (log-edit-fill-entry))
68 (should (equal (buffer-string) "\ 67 (should (equal (buffer-string) "\
@@ -71,21 +70,21 @@ lines.
71Some prose. 70Some prose.
72\(fun8): A longer description of a 71\(fun8): A longer description of a
73complicated change. Spread over a 72complicated change. Spread over a
74couple of sentencences. Long enough to 73couple of sentences. Long enough to be
75be filled for several lines. 74filled for several lines.
76\(fun9): Etc.")))) 75\(fun9): Etc."))))
77 76
78(ert-deftest log-edit-fill-entry-trailing-prose () 77(ert-deftest log-edit-fill-entry-trailing-prose ()
79 (with-temp-buffer 78 (with-temp-buffer
80 (insert "\ 79 (insert "\
81* dir/file.ext (fun1): A longer description of a complicated change.\ 80* dir/file.ext (fun1): A longer description of a complicated change.\
82 Spread over a couple of sentencences.\ 81 Spread over a couple of sentences.\
83 Long enough to be filled for several lines.") 82 Long enough to be filled for several lines.")
84 (let ((fill-column 72)) (log-edit-fill-entry)) 83 (let ((fill-column 72)) (log-edit-fill-entry))
85 (should (equal (buffer-string) "\ 84 (should (equal (buffer-string) "\
86* dir/file.ext (fun1): A longer description of a complicated change. 85* dir/file.ext (fun1): A longer description of a complicated change.
87Spread over a couple of sentencences. Long enough to be filled for 86Spread over a couple of sentences. Long enough to be filled for several
88several lines.")))) 87lines."))))
89 88
90(ert-deftest log-edit-fill-entry-joining () 89(ert-deftest log-edit-fill-entry-joining ()
91 ;; Join short enough function names on the same line. 90 ;; Join short enough function names on the same line.
diff --git a/test/manual/cedet/tests/test-fmt.cpp b/test/manual/cedet/tests/test-fmt.cpp
index c94bcfafbca..6ae373de359 100644
--- a/test/manual/cedet/tests/test-fmt.cpp
+++ b/test/manual/cedet/tests/test-fmt.cpp
@@ -56,12 +56,12 @@ struct moose {
56 * ## uml-prototype "moose{} : struct" 56 * ## uml-prototype "moose{} : struct"
57 */ 57 */
58 58
59struct moose strct_fcn ( struct moose in, char *out); 59struct moose struct_fcn ( struct moose in, char *out);
60/* 60/*
61 * ## name "strct_fcn" 61 * ## name "struct_fcn"
62 * ## abbreviate "strct_fcn()" 62 * ## abbreviate "struct_fcn()"
63 * ## prototype "struct moose strct_fcn (struct moose in,char* out)" 63 * ## prototype "struct moose struct_fcn (struct moose in,char* out)"
64 * ## uml-prototype "strct_fcn (in : struct moose,out : char*) : struct moose" 64 * ## uml-prototype "struct_fcn (in : struct moose,out : char*) : struct moose"
65 */ 65 */
66 66
67struct moose *var_one = NULL; 67struct moose *var_one = NULL;
diff --git a/test/manual/cedet/tests/test.srt b/test/manual/cedet/tests/test.srt
index b77cd4fbe29..cbc8c3f1ba1 100644
--- a/test/manual/cedet/tests/test.srt
+++ b/test/manual/cedet/tests/test.srt
@@ -57,7 +57,7 @@ template testarea :blank
57---- 57----
58 58
59;; This is a bad hack - In order for the text to parse, but also get a completion 59;; This is a bad hack - In order for the text to parse, but also get a completion
60;; monicker into the right spot, we need to pretend a comment is the same as the 60;; moniker into the right spot, we need to pretend a comment is the same as the
61;; escape_end. 61;; escape_end.
62;; Local variables: 62;; Local variables:
63;; comment-start-skip: "}}" 63;; comment-start-skip: "}}"
diff --git a/test/manual/etags/cp-src/functions.cpp b/test/manual/etags/cp-src/functions.cpp
index 764498d4084..7c353d161a1 100644
--- a/test/manual/etags/cp-src/functions.cpp
+++ b/test/manual/etags/cp-src/functions.cpp
@@ -28,7 +28,7 @@ void Date::setDate ( int d , int m , int y ){
28 t = mktime ( date ) ; 28 t = mktime ( date ) ;
29} 29}
30 30
31// Addition operation ::: Warning ::: A combination of addition and substraction does not give a proper result 31// Addition operation ::: Warning ::: A combination of addition and subtraction does not give a proper result
32void Date::plus ( int days , int month , int year ){ 32void Date::plus ( int days , int month , int year ){
33 if ( ! set () ) 33 if ( ! set () )
34 return; 34 return;
@@ -38,7 +38,7 @@ void Date::plus ( int days , int month , int year ){
38 mktime ( date ); 38 mktime ( date );
39} 39}
40 40
41//Substraction operation ::: Warning ::: A combination of addition and substraction does not give a proper result 41//Subtraction operation ::: Warning ::: A combination of addition and subtraction does not give a proper result
42void Date::minus ( int days , int month , int year ){ 42void Date::minus ( int days , int month , int year ){
43 if ( ! set () ) 43 if ( ! set () )
44 return; 44 return;
@@ -74,7 +74,7 @@ Date & Date::operator += ( int days ){
74 return(*this); 74 return(*this);
75} 75}
76 76
77// Substract number of days 77// Subtract number of days
78Date & Date::operator -= ( int days ){ 78Date & Date::operator -= ( int days ){
79 if ( set () ){ 79 if ( set () ){
80 date->tm_mday -= days ; 80 date->tm_mday -= days ;
diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el
index 5fd37520f70..3a9b43ec4ee 100644
--- a/test/src/buffer-tests.el
+++ b/test/src/buffer-tests.el
@@ -565,7 +565,7 @@ with parameters from the *Messages* buffer modification."
565(deftest-previous-overlay-change-1 o 25 20 (30 30) (20 30)) 565(deftest-previous-overlay-change-1 o 25 20 (30 30) (20 30))
566(deftest-previous-overlay-change-1 p 30 20 (20 20) (20 30)) 566(deftest-previous-overlay-change-1 p 30 20 (20 20) (20 30))
567(deftest-previous-overlay-change-1 q 40 30 (20 20) (20 30)) 567(deftest-previous-overlay-change-1 q 40 30 (20 20) (20 30))
568;; 1 empty, 1 non-empty, intersectig in the middle 568;; 1 empty, 1 non-empty, intersecting in the middle
569(deftest-previous-overlay-change-1 r 10 1 (25 25) (20 30)) 569(deftest-previous-overlay-change-1 r 10 1 (25 25) (20 30))
570(deftest-previous-overlay-change-1 s 20 1 (25 25) (20 30)) 570(deftest-previous-overlay-change-1 s 20 1 (25 25) (20 30))
571(deftest-previous-overlay-change-1 t 25 20 (25 25) (20 30)) 571(deftest-previous-overlay-change-1 t 25 20 (25 25) (20 30))
@@ -969,7 +969,7 @@ with parameters from the *Messages* buffer modification."
969 (should (= 25 (overlay-start right))) 969 (should (= 25 (overlay-start right)))
970 (should (= 75 (overlay-end right))) 970 (should (= 75 (overlay-end right)))
971 ;; Try to detect the error, by removing left. The should fail 971 ;; Try to detect the error, by removing left. The should fail
972 ;; an eassert, since it won't be found by a reular tree 972 ;; an eassert, since it won't be found by a regular tree
973 ;; traversal - in theory. 973 ;; traversal - in theory.
974 (delete-overlay left) 974 (delete-overlay left)
975 (should (= 2 (length (overlays-in 1 (point-max)))))))) 975 (should (= 2 (length (overlays-in 1 (point-max))))))))
@@ -1045,7 +1045,7 @@ with parameters from the *Messages* buffer modification."
1045;; | make-indirect-buffer 1045;; | make-indirect-buffer
1046;; +==========================================================================+ 1046;; +==========================================================================+
1047 1047
1048;; Check if overlays are cloned/seperate from indirect buffer. 1048;; Check if overlays are cloned/separate from indirect buffer.
1049(ert-deftest test-make-indirect-buffer-1 () 1049(ert-deftest test-make-indirect-buffer-1 ()
1050 (with-temp-buffer 1050 (with-temp-buffer
1051 (dotimes (_ 10) (make-overlay 1 1)) 1051 (dotimes (_ 10) (make-overlay 1 1))
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el
index 93f7f63847f..bcc652a8053 100644
--- a/test/src/fns-tests.el
+++ b/test/src/fns-tests.el
@@ -269,7 +269,7 @@
269 (should (equal (base64-encode-string "\x14\xfb\x9c\x03\xd9\x7f") "FPucA9l/"))) 269 (should (equal (base64-encode-string "\x14\xfb\x9c\x03\xd9\x7f") "FPucA9l/")))
270 270
271(ert-deftest fns-test-base64url-encode-region () 271(ert-deftest fns-test-base64url-encode-region ()
272 ;; url variant wih padding 272 ;; url variant with padding
273 (should (equal (fns-tests--with-region base64url-encode-region "") "")) 273 (should (equal (fns-tests--with-region base64url-encode-region "") ""))
274 (should (equal (fns-tests--with-region base64url-encode-region "f") "Zg==")) 274 (should (equal (fns-tests--with-region base64url-encode-region "f") "Zg=="))
275 (should (equal (fns-tests--with-region base64url-encode-region "fo") "Zm8=")) 275 (should (equal (fns-tests--with-region base64url-encode-region "fo") "Zm8="))
@@ -311,7 +311,7 @@
311 (fns-tests--string-repeat "FPucA9l_" 10)))) 311 (fns-tests--string-repeat "FPucA9l_" 10))))
312 312
313(ert-deftest fns-test-base64url-encode-string () 313(ert-deftest fns-test-base64url-encode-string ()
314 ;; url variant wih padding 314 ;; url variant with padding
315 (should (equal (base64url-encode-string "") "")) 315 (should (equal (base64url-encode-string "") ""))
316 (should (equal (base64url-encode-string "f") "Zg==")) 316 (should (equal (base64url-encode-string "f") "Zg=="))
317 (should (equal (base64url-encode-string "fo") "Zm8=")) 317 (should (equal (base64url-encode-string "fo") "Zm8="))
@@ -356,7 +356,7 @@
356 (should (equal (base64-decode-string "FPucA9l+") "\x14\xfb\x9c\x03\xd9\x7e")) 356 (should (equal (base64-decode-string "FPucA9l+") "\x14\xfb\x9c\x03\xd9\x7e"))
357 (should (equal (base64-decode-string "FPucA9l/") "\x14\xfb\x9c\x03\xd9\x7f")) 357 (should (equal (base64-decode-string "FPucA9l/") "\x14\xfb\x9c\x03\xd9\x7f"))
358 358
359 ;; no paddign 359 ;; no padding
360 (should (equal (base64-decode-string "" t) "")) 360 (should (equal (base64-decode-string "" t) ""))
361 (should (equal (base64-decode-string "Zg" t) "f")) 361 (should (equal (base64-decode-string "Zg" t) "f"))
362 (should (equal (base64-decode-string "Zm8" t) "fo")) 362 (should (equal (base64-decode-string "Zm8" t) "fo"))
@@ -365,7 +365,7 @@
365 (should (equal (base64-decode-string "Zm9vYmE" t) "fooba")) 365 (should (equal (base64-decode-string "Zm9vYmE" t) "fooba"))
366 (should (equal (base64-decode-string "Zm9vYmFy" t) "foobar")) 366 (should (equal (base64-decode-string "Zm9vYmFy" t) "foobar"))
367 367
368 ;; url variant wih padding 368 ;; url variant with padding
369 (should (equal (base64-decode-string "") "")) 369 (should (equal (base64-decode-string "") ""))
370 (should (equal (base64-decode-string "Zg==" t) "f") ) 370 (should (equal (base64-decode-string "Zg==" t) "f") )
371 (should (equal (base64-decode-string "Zm8=" t) "fo")) 371 (should (equal (base64-decode-string "Zm8=" t) "fo"))