From: Eli Zaretskii Date: Fri, 27 Nov 2015 11:11:00 +0000 (+0200) Subject: Add module tests for wrong-type-argument X-Git-Tag: emacs-25.0.90~632 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8dcdca346f02ebb93feab9f9b8c9091bc39eb058;p=emacs.git Add module tests for wrong-type-argument * modules/mod-test/test.el (mod-test-sum-test): Add tests for wrong-type-argument. --- diff --git a/modules/mod-test/test.el b/modules/mod-test/test.el index 34090d9b062..3cb4e9344ca 100644 --- a/modules/mod-test/test.el +++ b/modules/mod-test/test.el @@ -38,7 +38,9 @@ "#" "#") (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")))