diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2018-02-14 19:19:00 +0000 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2018-02-14 19:19:00 +0000 |
| commit | 5d0662dc1c6c087d0f23621a77b29f48895e73a0 (patch) | |
| tree | 6ab915f48e0559a354013a0d05fbc7149263ea3a /test | |
| parent | 874351d34d32f935e3f20485a544681de369c756 (diff) | |
Fix a crash for functions whose body ends with a symbol
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit-test.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit-test.el b/test/unit-test.el index 55945f9..ef8612b 100644 --- a/test/unit-test.el +++ b/test/unit-test.el @@ -88,6 +88,16 @@ (eval (eval-sexp-add-defvars (edebug-read-top-level-form)) t)))) (helpful-function #'test-foo-edebug)) +(defun test-foo-return-arg (s) + "blah blah." + s) + +(ert-deftest helpful--edebug-p () + "Ensure that we don't crash on a function whose body ends with +symbol (not a form)." + (should + (not (helpful--edebug-p #'test-foo-return-arg)))) + (defun test-foo-usage-docstring () "\n\n(fn &rest ARGS)" nil) |
