diff options
| author | John Wiegley | 2017-11-29 14:41:12 -0800 |
|---|---|---|
| committer | John Wiegley | 2017-11-29 16:37:03 -0800 |
| commit | bff472ea80af2da0a47307e1d807f7fe330abf39 (patch) | |
| tree | 6b3da2fb272434b33719f808900f516845fb51e5 /test | |
| parent | f256943f9b50c43a8c280c48ce7f891f834509e5 (diff) | |
| download | emacs-bff472ea80af2da0a47307e1d807f7fe330abf39.tar.gz emacs-bff472ea80af2da0a47307e1d807f7fe330abf39.zip | |
Allow :bind ("C-c C-c" . (lambda () (ding))) and #'(lambda ...)
Fixes https://github.com/jwiegley/use-package/issues/333
Fixes https://github.com/jwiegley/use-package/issues/461
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/use-package/use-package-tests.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el index c52c3810439..830ca644990 100644 --- a/test/lisp/use-package/use-package-tests.el +++ b/test/lisp/use-package/use-package-tests.el | |||
| @@ -84,6 +84,20 @@ | |||
| 84 | (should (equal (use-package-normalize-diminish 'foopkg :diminish '(foo . "bar")) | 84 | (should (equal (use-package-normalize-diminish 'foopkg :diminish '(foo . "bar")) |
| 85 | '((foo . "bar"))))) | 85 | '((foo . "bar"))))) |
| 86 | 86 | ||
| 87 | (ert-deftest use-package--recognize-function-test () | ||
| 88 | (should (use-package--recognize-function 'sym)) | ||
| 89 | (should (use-package--recognize-function #'sym)) | ||
| 90 | (should (use-package--recognize-function (lambda () ...))) | ||
| 91 | (should (use-package--recognize-function '(lambda () ...))) | ||
| 92 | (should (use-package--recognize-function #'(lambda () ...)))) | ||
| 93 | |||
| 94 | (ert-deftest use-package--normalize-function-test () | ||
| 95 | (should (equal (use-package--normalize-function 'sym) 'sym)) | ||
| 96 | (should (equal (use-package--normalize-function #'sym) 'sym)) | ||
| 97 | (should (equal (use-package--normalize-function (lambda () ...)) (lambda () ...))) | ||
| 98 | (should (equal (use-package--normalize-function '(lambda () ...)) (lambda () ...))) | ||
| 99 | (should (equal (use-package--normalize-function #'(lambda () ...)) (lambda () ...)))) | ||
| 100 | |||
| 87 | ;; Local Variables: | 101 | ;; Local Variables: |
| 88 | ;; indent-tabs-mode: nil | 102 | ;; indent-tabs-mode: nil |
| 89 | ;; no-byte-compile: t | 103 | ;; no-byte-compile: t |