aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2017-12-12 21:28:38 +0000
committerWilfred Hughes <me@wilfred.me.uk>2017-12-12 21:32:06 +0000
commite6efb25015180049d624c2e86f956cfe76ffe125 (patch)
treec4e60e36eeff70d21798a4bc36addb24943ef1ef /test
parent7f4fe1578f4c7859252332704785797b0239dbb4 (diff)
Add unit test for helpful on macros
Diffstat (limited to 'test')
-rw-r--r--test/unit-test.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit-test.el b/test/unit-test.el
index 7e1e3bd..4a36b40 100644
--- 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