Allow match-expansion to take multiple cases

This commit is contained in:
John Wiegley 2017-11-30 19:40:54 -08:00
parent 7a562f10cb
commit dfd3194d80

View file

@ -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