diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2018-01-15 23:11:21 +0000 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2018-01-15 23:12:09 +0000 |
| commit | 5eb8368c429833309abaa5c42e170e6fad84a19f (patch) | |
| tree | ce0ed4d4e273d4e50a88e02fdd796338185f81c1 /test | |
| parent | 5746e9dbe486c75fe4904575f9663c2da455013e (diff) | |
Don't error if a symbol is only defined in a .elc file
Fixes #88
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit-test.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit-test.el b/test/unit-test.el index 2579316..6572a95 100644 --- a/test/unit-test.el +++ b/test/unit-test.el @@ -262,3 +262,14 @@ and that buffer has been killed, handle it gracefully." (should (equal (helpful--aliases 'emacs-repository-version nil) (list 'emacs-bzr-version 'emacs-repository-version)))) + +(defun helpful-fn-in-elc ()) + +(ert-deftest helpful--elc-only () + "Ensure we handle functions where we have the .elc but no .el +file." + ;; Pretend that we've loaded `helpful-fn-in-elc' from /tmp/foo.elc. + (let ((load-history (cons '("/tmp/foo.elc" (defun . helpful-fn-in-elc)) + load-history))) + ;; This should not error. + (helpful-function 'helpful-fn-in-elc))) |
