Eli Zaretskii <
eliz@gnu.org> 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.