projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d846b8
)
Fix compile time error in a pcase test
author
Stefan Kangas
<stefan@marxist.se>
Wed, 22 Dec 2021 21:40:51 +0000
(22:40 +0100)
committer
Stefan Kangas
<stefan@marxist.se>
Wed, 22 Dec 2021 21:59:36 +0000
(22:59 +0100)
* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-cl-type): Fix test.
test/lisp/emacs-lisp/pcase-tests.el
patch
|
blob
|
history
diff --git
a/test/lisp/emacs-lisp/pcase-tests.el
b/test/lisp/emacs-lisp/pcase-tests.el
index 7ad01e7aef71f4351a1272d9d8a1eaae2ffd7a27..40ae9809b5f8c5f610e945924be23f742c6fbe14 100644
(file)
--- 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)