aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mod-test/test.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mod-test/test.el')
-rw-r--r--modules/mod-test/test.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/mod-test/test.el b/modules/mod-test/test.el
index a0abdab49e5..eacc6671ead 100644
--- a/modules/mod-test/test.el
+++ b/modules/mod-test/test.el
@@ -42,7 +42,11 @@
42 (nth 1 descr)))) 42 (nth 1 descr))))
43 (should (= (nth 2 descr) 3))) 43 (should (= (nth 2 descr) 3)))
44 (should-error (mod-test-sum "1" 2) :type 'wrong-type-argument) 44 (should-error (mod-test-sum "1" 2) :type 'wrong-type-argument)
45 (should-error (mod-test-sum 1 "2") :type 'wrong-type-argument)) 45 (should-error (mod-test-sum 1 "2") :type 'wrong-type-argument)
46 (should (= (mod-test-sum -1 most-positive-fixnum)
47 (1- most-positive-fixnum)))
48 (should (= (mod-test-sum 1 most-negative-fixnum)
49 (1+ most-negative-fixnum))))
46 50
47(ert-deftest mod-test-sum-docstring () 51(ert-deftest mod-test-sum-docstring ()
48 (should (string= (documentation 'mod-test-sum) "Return A + B"))) 52 (should (string= (documentation 'mod-test-sum) "Return A + B")))