projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
026433a
)
Add expand-maximally macro to up-tests.el
author
John Wiegley
<johnw@newartisans.com>
Mon, 4 Dec 2017 18:30:49 +0000
(10:30 -0800)
committer
John Wiegley
<johnw@newartisans.com>
Mon, 4 Dec 2017 18:30:49 +0000
(10:30 -0800)
up-tests.el
patch
|
blob
|
history
diff --git
a/up-tests.el
b/up-tests.el
index 063db98bbea6127aee01996336f27db9b3a10d90..2635c7df757645f1a899c90d3503e90581aae20b 100644
(file)
--- a/
up-tests.el
+++ b/
up-tests.el
@@
-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))))