diff options
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/pcase-tests.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/pcase-tests.el b/test/lisp/emacs-lisp/pcase-tests.el index 35cf2f93cdc..e777b71920c 100644 --- a/test/lisp/emacs-lisp/pcase-tests.el +++ b/test/lisp/emacs-lisp/pcase-tests.el @@ -83,7 +83,14 @@ (should-not (pcase-tests-grep 'FOO (macroexpand '(pcase EXP (`(,_ . ,_) (BAR)) - ('(a b) (FOO))))))) + ('(a b) (FOO)))))) + (let ((exp1 (macroexpand '(pcase EXP + (`(`(,(or 'a1 'b1)) (FOO1))) + ('(c) (FOO2)) + ('(d) (FOO3)))))) + (should (= 1 (with-temp-buffer (prin1 exp1 (current-buffer)) + (goto-char (point-min)) + (count-matches "(FOO3)")))))) (ert-deftest pcase-tests-bug14773 () (let ((f (lambda (x) |