commit e6efb25015180049d624c2e86f956cfe76ffe125
parent 7f4fe1578f4c7859252332704785797b0239dbb4
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Tue, 12 Dec 2017 21:28:38 +0000
Add unit test for helpful on macros
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/test/unit-test.el b/test/unit-test.el
@@ -77,6 +77,10 @@
;; Defined in elisp.
(should (not (helpful--primitive-p 'when t))))
+(ert-deftest helpful-callable ()
+ ;; We should not crash when looking at macros.
+ (helpful-callable 'when))
+
(ert-deftest helpful--no-symbol-properties ()
"Helpful should handle functions without any symbol properties."
;; Interactively evaluating this file will set edebug properties on