]> git.eshelyaron.com Git - emacs.git/commitdiff
; Restore selector `member' accidentally drooped in ert rewrite.
authorAnders Lindgren <andlind@gmail.com>
Fri, 11 Dec 2015 05:46:19 +0000 (06:46 +0100)
committerAnders Lindgren <andlind@gmail.com>
Fri, 11 Dec 2015 05:46:19 +0000 (06:46 +0100)
; `test/automated/ert.el' and `test/automated/ert-x.el' now run
; without errors.

* lisp/emacs-lisp/ert.el (ert--insert-human-readable-selector): Add
the `member' selector. This was accidentally dropped when code was
converted from `cl-typecase' (where `member' has a special meaning)
and `cl-ecase' (where it doesn't) to `pcase'.

lisp/emacs-lisp/ert.el

index 470fd493661bd1e3d211d071f1f2d6f7bdc472e9..02ae41b9c6ba0401c4889bfc5ecc914138a1ffb3 100644 (file)
@@ -1071,7 +1071,7 @@ contained in UNIVERSE."
                      (make-symbol "<unnamed test>")))
                   (`(,operator . ,operands)
                    (pcase operator
-                     ((or 'eql 'and 'not 'or)
+                     ((or 'member 'eql 'and 'not 'or)
                       `(,operator ,@(mapcar #'rec operands)))
                      ((or 'tag 'satisfies)
                       selector))))))