]> git.eshelyaron.com Git - emacs.git/commitdiff
Suppress memql warning in test
authorMattias Engdegård <mattiase@acm.org>
Sat, 17 Dec 2022 18:13:13 +0000 (19:13 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sun, 18 Dec 2022 14:01:06 +0000 (15:01 +0100)
* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-adjoin-test):
Suppress warning about `memql` argument inside expansion of
`cl-adjoin`.

test/lisp/emacs-lisp/cl-lib-tests.el

index c3c04b6305e506e2dd15f54ed102287376459d5a..759138569e40cb239af9ec4ffc5921ac185c0751 100644 (file)
     (should (eq nums (cdr (cl-adjoin 3 nums))))
     ;; add only when not already there
     (should (eq nums (cl-adjoin 2 nums)))
-    (should (equal '(2 1 (2)) (cl-adjoin 2 '(1 (2)))))
+    (with-suppressed-warnings ((suspicious eq))
+      (should (equal '(2 1 (2)) (cl-adjoin 2 '(1 (2))))))
     ;; default test function is eql
     (should (equal '(1.0 1 2) (cl-adjoin 1.0 nums)))
     ;; own :test function - returns true if match