Add expand-maximally macro to up-tests.el
This commit is contained in:
@@ -61,6 +61,11 @@
|
||||
(use-package-expand-minimally t))
|
||||
(macroexpand-1 ',form)))
|
||||
|
||||
(defmacro expand-maximally (form)
|
||||
`(let ((use-package-verbose 'debug)
|
||||
(use-package-expand-minimally nil))
|
||||
(macroexpand-1 ',form)))
|
||||
|
||||
(defmacro match-expansion (form &rest value)
|
||||
`(should (pcase (expand-minimally ,form)
|
||||
,@(mapcar #'(lambda (x) (list x t)) value))))
|
||||
|
||||
Reference in New Issue
Block a user