Fix Edebug specs for if-let* and and-let* (Bug#29236)
* test/lisp/emacs-lisp/subr-x.el (if-let*, if-let): Change Edebug spec to cause Edebug to instrument tests the results of which are not bound to symbols (the (VALUEFORM) case). (and-let*): Change Edebug spec to allow empty body. *test/lisp/emacs-lisp/subr-x-tests.el: (subr-x-and-let*-test-group-1): Add missing quote to erroneous form so Edebug will work on this test.
This commit is contained in:
parent
0ded1b41a9
commit
700f74e4c8
2 changed files with 6 additions and 4 deletions
|
@ -403,7 +403,7 @@
|
|||
(should-error (eval '(and-let* (nil (x 1))) lexical-binding)
|
||||
:type 'setting-constant)
|
||||
(should (equal nil (and-let* ((nil) (x 1)))))
|
||||
(should-error (eval (and-let* (2 (x 1))) lexical-binding)
|
||||
(should-error (eval '(and-let* (2 (x 1))) lexical-binding)
|
||||
:type 'wrong-type-argument)
|
||||
(should (equal 1 (and-let* ((2) (x 1)))))
|
||||
(should (equal 2 (and-let* ((x 1) (2)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue