Skip to content

Commit 274a96e

Browse files
author
Dan Sutton
committed
Add a test that bad arities are caught
1 parent 7f1b559 commit 274a96e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/resize-window-test.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@
3131
resize-window-notify-with-messages ;suppress messages
3232
(executed))
3333
(resize-window--execute-action choice)
34-
(should executed)))
34+
(should executed))
35+
36+
(let ((bad-arity '(?n (lambda (a b c) 1) "doc" nil))
37+
resize-window-notify-with-messages)
38+
;; this is a bad arity test. it should not error.
39+
(resize-window--execute-action bad-arity)))
3540

3641
(ert-deftest should-identify-which-allow-capital-matching ()
3742
(should (resize-window--allows-capitals choice-capital))

0 commit comments

Comments
 (0)