]> git.eshelyaron.com Git - emacs.git/commitdiff
Add module tests for wrong-type-argument
authorEli Zaretskii <eliz@gnu.org>
Fri, 27 Nov 2015 11:11:00 +0000 (13:11 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 27 Nov 2015 11:11:00 +0000 (13:11 +0200)
* modules/mod-test/test.el (mod-test-sum-test): Add tests for
wrong-type-argument.

modules/mod-test/test.el

index 34090d9b062be1d8095541cff84b89a1383b6df0..3cb4e9344cad3085fce1e754584f34d600cbb96a 100644 (file)
@@ -38,7 +38,9 @@
                      "#<module function at \\(0x\\)?[0-9a-fA-F]+ from .*>"
                    "#<module function Fmod_test_sum from .*>")
                  (nth 1 descr))))
-    (should (= (nth 2 descr) 3))))
+    (should (= (nth 2 descr) 3)))
+  (should-error (mod-test-sum "1" 2) :type 'wrong-type-argument)
+  (should-error (mod-test-sum 1 "2") :type 'wrong-type-argument))
 
 (ert-deftest mod-test-sum-docstring ()
   (should (string= (documentation 'mod-test-sum) "Return A + B")))