mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 19:29:37 +00:00
Allow match-expansion to take multiple cases
This commit is contained in:
parent
7a562f10cb
commit
dfd3194d80
1 changed files with 2 additions and 2 deletions
|
@ -30,9 +30,9 @@
|
|||
(use-package-expand-minimally t))
|
||||
(macroexpand ',form)))
|
||||
|
||||
(defmacro match-expansion (form value)
|
||||
(defmacro match-expansion (form &rest value)
|
||||
`(should (pcase (expand-minimally ,form)
|
||||
(,value t))))
|
||||
,@(mapcar #'(lambda (x) (list x t)) value))))
|
||||
|
||||
;; `cl-flet' does not work for the mocking we do below, while `flet' does.
|
||||
(eval-when-compile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue