diff --git a/modules/mod-test/test.el b/modules/mod-test/test.el index ad4cc49c690..c1defae9bd7 100644 --- a/modules/mod-test/test.el +++ b/modules/mod-test/test.el @@ -34,11 +34,9 @@ (should (stringp (nth 1 descr))) (should (eq 0 (string-match - (if (eq system-type 'windows-nt) - "#" - (if (eq system-type 'cygwin) - "#" - "#")) + (concat "#") (nth 1 descr)))) (should (= (nth 2 descr) 3))) (should-error (mod-test-sum "1" 2) :type 'wrong-type-argument) @@ -48,10 +46,10 @@ (1- most-positive-fixnum))) (should (= (mod-test-sum 1 most-negative-fixnum) (1+ most-negative-fixnum))) - (should (= (mod-test-sum 1 #x1fffffff) - (1+ #x1fffffff))) - (should (= (mod-test-sum -1 #x20000000) - #x1fffffff))) + (should-error (mod-test-sum 1 most-positive-fixnum) + :type 'overflow-error) + (should-error (mod-test-sum -1 most-negative-fixnum) + :type 'overflow-error)) (ert-deftest mod-test-sum-docstring () (should (string= (documentation 'mod-test-sum) "Return A + B")))