diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-12-22 22:40:51 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-12-22 22:59:36 +0100 |
commit | 8cc7326d953db2006c41a8eb99ca2530a63cabda (patch) | |
tree | b636169e48f1bdf1180ac08dea578fefaaa94edc /test/lisp/emacs-lisp | |
parent | 8d846b8f8e09a0865a0e08cc2fea3ede48accdc3 (diff) | |
download | emacs-8cc7326d953db2006c41a8eb99ca2530a63cabda.tar.gz emacs-8cc7326d953db2006c41a8eb99ca2530a63cabda.tar.bz2 emacs-8cc7326d953db2006c41a8eb99ca2530a63cabda.zip |
Fix compile time error in a pcase test
* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-cl-type): Fix test.
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/pcase-tests.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lisp/emacs-lisp/pcase-tests.el b/test/lisp/emacs-lisp/pcase-tests.el index 7ad01e7aef7..40ae9809b5f 100644 --- a/test/lisp/emacs-lisp/pcase-tests.el +++ b/test/lisp/emacs-lisp/pcase-tests.el @@ -107,8 +107,11 @@ (should (equal (pcase 1 ((cl-type (integer 0 2)) 'integer-0<=n<=2)) 'integer-0<=n<=2)) - (should-error (pcase 1 - ((cl-type notatype) 'integer)))) + (should-error + ;; Avoid error at compile time due to compiler macro. + (eval '(pcase 1 + ((cl-type notatype) 'integer)) + t))) (ert-deftest pcase-tests-setq () (should (equal (let (a b) |