mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 19:29:37 +00:00
Add test for use-package-test-normalize/:ensure
This commit is contained in:
parent
9465b915a8
commit
7a562f10cb
1 changed files with 10 additions and 0 deletions
|
@ -85,6 +85,16 @@
|
|||
;; (should (equal (macroexpand (use-package))
|
||||
;; '())))
|
||||
|
||||
(ert-deftest use-package-test-normalize/:ensure ()
|
||||
(flet ((norm (&rest args)
|
||||
(apply #'use-package-normalize/:ensure
|
||||
'foopkg :ensure args)))
|
||||
(should (equal (norm '(t)) t))
|
||||
(should (equal (norm '(nil)) nil))
|
||||
(should (equal (norm '(sym)) 'sym))
|
||||
(should-error (norm '(1)))
|
||||
(should-error (norm '("Hello")))))
|
||||
|
||||
(ert-deftest use-package-test/:ensure ()
|
||||
(let ((use-package-always-ensure nil))
|
||||
(match-expansion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue