|
From: | Oleksandr Gavenko |
Subject: | How to assert "throw" by ERT? |
Date: | Thu, 17 Jan 2013 23:03:18 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
ERT is Emacs Lisp Regression Testing and ERT packed in GNU Emacs. I want to check that my function throw on some input data: (defun foo (arg) (unless arg (throw :invalid-arg nil))) I write: (ert-deftest foo-fail-test () (should-error (foo nil) :type :invalid-arg) ) but seems this is wrong usege or 'should-error'. Please help me with example... -- Best regards!
[Prev in Thread] | Current Thread | [Next in Thread] |