diff options
| author | Nick Drozd <nicholasdrozd@gmail.com> | 2019-03-03 21:45:49 -0600 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2019-03-09 01:22:34 +0000 |
| commit | a102f46361a41798d8f7ef429f244bb7a81a5868 (patch) | |
| tree | 5256523dfcc06cc37be50ea9ab94c3052cfc53d3 /test | |
| parent | a7d2098dfd71f948340f63bb4ba84115725529e3 (diff) | |
Fix type error for unbound symbols
Diffstat (limited to 'test')
| -rw-r--r-- | test/helpful-unit-test.el | 7 |
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 |
