emacs-devel
[Top][All Lists]
Advanced

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

Re: Dynamic modules: should should-error work?


From: Philipp Stephani
Subject: Re: Dynamic modules: should should-error work?
Date: Mon, 23 Nov 2015 19:28:09 +0000



Eli Zaretskii <address@hidden> schrieb am So., 22. Nov. 2015 um 19:29 Uhr:
It looks like should-error doesn't work with functions implemented in
modules.  For example, try this in modules/mod-test/test.el:

  (ert-deftest mod-test-sum-test ()
    (should-error (mod-test-sum 1 2 3)))

I cannot get this test to succeed, although the error message about
wrong number of arguments is emitted.  What am I missing?


This works for me. Maybe there was some intermittent bug that has since been fixed?
Anyway, this is a useful thing to test. I've attached a patch to add this to the test suite. 

Attachment: 0001-Add-test-for-argument-count-check.patch
Description: Binary data


reply via email to

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