emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 8dcdca3 1/2: Add module tests for wrong-type-argu


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 8dcdca3 1/2: Add module tests for wrong-type-argument
Date: Fri, 27 Nov 2015 11:12:18 +0000

branch: emacs-25
commit 8dcdca346f02ebb93feab9f9b8c9091bc39eb058
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Add module tests for wrong-type-argument
    
    * modules/mod-test/test.el (mod-test-sum-test): Add tests for
    wrong-type-argument.
---
 modules/mod-test/test.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/mod-test/test.el b/modules/mod-test/test.el
index 34090d9..3cb4e93 100644
--- a/modules/mod-test/test.el
+++ b/modules/mod-test/test.el
@@ -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")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]