diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2018-07-24 09:01:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-24 09:01:55 +0100 |
| commit | 598d4acde5f9812cb3a58a4a996889ae611bd7b7 (patch) | |
| tree | 268c6cc066982daf3bc0b9831a0bfd053d6d4939 /test | |
| parent | b3c7741480e6a6a22d74e76f951f46f5ed2d86b8 (diff) | |
| parent | 73cec38b127876a850269a9dd5f59bcaeaed2c26 (diff) | |
Merge pull request #145 from nickdrozd/lambda-callees
helpful--show-callees choked on anonymous functions
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit-test.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/unit-test.el b/test/unit-test.el index 8121ffc..b051c06 100644 --- a/test/unit-test.el +++ b/test/unit-test.el @@ -716,3 +716,19 @@ find the source code." (apply #'bar 2))))) (should (memq 'foo result)) (should (memq 'bar result)))) + +(ert-deftest helpful--callees-button--smoke () + (with-temp-buffer + (let ((button (helpful--make-callees-button + 'whatever + '(defun whatever () (something) (test 5))))) + (insert button) + (goto-char (point-min)) + (push-button))) + (with-temp-buffer + (let ((button (helpful--make-callees-button + '(lambda () (interactive) (other-window -1)) + '(lambda () (interactive) (other-window -1))))) + (insert button) + (goto-char (point-min)) + (push-button)))) |
