aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/emacs-module-tests.el
diff options
context:
space:
mode:
authorJonas Bernoulli2020-04-20 23:32:19 +0200
committerJonas Bernoulli2020-08-13 11:30:16 +0200
commitcb58a3c5526c0818ae4ddb1f9e4fa41ce5c64688 (patch)
tree62c15dd137e8aa4251f1955261b6f54cb88bdd16 /test/src/emacs-module-tests.el
parent9d267db8fa25bbbb8d360d133402aece918624af (diff)
downloademacs-cb58a3c5526c0818ae4ddb1f9e4fa41ce5c64688.tar.gz
emacs-cb58a3c5526c0818ae4ddb1f9e4fa41ce5c64688.zip
* test/src/emacs-module-tests.el: Use proper outline headings.
This library already used section headings but it used just two instead of three semicolons, making them indistinguishable from plain comments.
Diffstat (limited to 'test/src/emacs-module-tests.el')
-rw-r--r--test/src/emacs-module-tests.el21
1 files changed, 6 insertions, 15 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index 51b2ca0cd51..0fd8e1db49e 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -24,6 +24,7 @@
24;; module in test/data/emacs-module. 24;; module in test/data/emacs-module.
25 25
26;;; Code: 26;;; Code:
27;;; Prelude
27 28
28(require 'cl-lib) 29(require 'cl-lib)
29(require 'ert) 30(require 'ert)
@@ -48,9 +49,7 @@
48(cl-defmethod emacs-module-tests--generic ((_ user-ptr)) 49(cl-defmethod emacs-module-tests--generic ((_ user-ptr))
49 'user-ptr) 50 'user-ptr)
50 51
51;; 52;;; Basic tests
52;; Basic tests.
53;;
54 53
55(ert-deftest mod-test-sum-test () 54(ert-deftest mod-test-sum-test ()
56 (should (= (mod-test-sum 1 2) 3)) 55 (should (= (mod-test-sum 1 2) 3))
@@ -103,9 +102,7 @@ changes."
103 ">" eos) 102 ">" eos)
104 (prin1-to-string func))))) 103 (prin1-to-string func)))))
105 104
106;; 105;;; Non-local exists (throw, signal)
107;; Non-local exists (throw, signal).
108;;
109 106
110(ert-deftest mod-test-non-local-exit-signal-test () 107(ert-deftest mod-test-non-local-exit-signal-test ()
111 (should-error (mod-test-signal)) 108 (should-error (mod-test-signal))
@@ -142,9 +139,7 @@ changes."
142 (should (equal (mod-test-non-local-exit-funcall (lambda () (throw 'tag 32))) 139 (should (equal (mod-test-non-local-exit-funcall (lambda () (throw 'tag 32)))
143 '(throw tag 32)))) 140 '(throw tag 32))))
144 141
145;; 142;;; String tests
146;; String tests.
147;;
148 143
149(defun multiply-string (s n) 144(defun multiply-string (s n)
150 "Return N copies of S concatenated together." 145 "Return N copies of S concatenated together."
@@ -168,9 +163,7 @@ changes."
168(ert-deftest mod-test-string-a-to-b-test () 163(ert-deftest mod-test-string-a-to-b-test ()
169 (should (string= (mod-test-string-a-to-b "aaa") "bbb"))) 164 (should (string= (mod-test-string-a-to-b "aaa") "bbb")))
170 165
171;; 166;;; User-pointer tests
172;; User-pointer tests.
173;;
174 167
175(ert-deftest mod-test-userptr-fun-test () 168(ert-deftest mod-test-userptr-fun-test ()
176 (let* ((n 42) 169 (let* ((n 42)
@@ -184,9 +177,7 @@ changes."
184 177
185;; TODO: try to test finalizer 178;; TODO: try to test finalizer
186 179
187;; 180;;; Vector tests
188;; Vector tests.
189;;
190 181
191(ert-deftest mod-test-vector-test () 182(ert-deftest mod-test-vector-test ()
192 (dolist (s '(2 10 100 1000)) 183 (dolist (s '(2 10 100 1000))