aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNick Drozd <nicholasdrozd@gmail.com>2019-03-03 21:45:49 -0600
committerWilfred Hughes <me@wilfred.me.uk>2019-03-09 01:22:34 +0000
commita102f46361a41798d8f7ef429f244bb7a81a5868 (patch)
tree5256523dfcc06cc37be50ea9ab94c3052cfc53d3 /test
parenta7d2098dfd71f948340f63bb4ba84115725529e3 (diff)
Fix type error for unbound symbols
Diffstat (limited to 'test')
-rw-r--r--test/helpful-unit-test.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el
index b2653e4..4f2379b 100644
--- a/test/helpful-unit-test.el
+++ b/test/helpful-unit-test.el
@@ -892,6 +892,13 @@ find the source code."
(should-not
(helpful--convert-c-name 'Vgc_cons_percentage nil)))
+(ert-deftest helpful-symbol-unbound ()
+ "Ensure we inform the user if we're given an unbound symbol."
+ (should
+ (condition-case _
+ (helpful-symbol 'notboundtoanything)
+ ('user-error t))))
+
(ert-deftest helpful--loads-autoload-symbol ()
"When asked to describe an autoloaded symbol, just load it."
;; This test assumes that you haven't loaded tetris.el.gz in your