]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow match-expansion to take multiple cases
authorJohn Wiegley <johnw@newartisans.com>
Fri, 1 Dec 2017 03:40:54 +0000 (19:40 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 1 Dec 2017 03:40:54 +0000 (19:40 -0800)
test/lisp/use-package/use-package-tests.el

index e27d7f288514c0c3959ec8aeb1b1fd21106929f8..35645fdce820fe4e1ddcb68543bd0a86b8a90d2c 100644 (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