aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Kangas2020-09-26 11:34:20 +0200
committerStefan Kangas2020-09-26 12:03:07 +0200
commite00936bf9f10cf44e1df71a7a11afd770e8a122a (patch)
tree04735ea688f4b36a8ec814c9949287ad6ffde98a /test/src
parent2dff3ea073c4118d79308178dcb3bd7bb1bb8237 (diff)
downloademacs-e00936bf9f10cf44e1df71a7a11afd770e8a122a.tar.gz
emacs-e00936bf9f10cf44e1df71a7a11afd770e8a122a.zip
Silence some byte-compiler warnings
* test/lisp/arc-mode-tests.el (arc-mode-test-archive-int-to-mode): * test/lisp/custom-tests.el (cus-test-opts): * test/lisp/help-fns-tests.el (foo-test-map) (help-fns-test--describe-keymap-foo): * test/src/fns-tests.el (w32-collate-ignore-punctuation) (fns-tests-func-arity): Silence byte-compiler warnings.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/fns-tests.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el
index 323743d8420..f2e1a268b08 100644
--- a/test/src/fns-tests.el
+++ b/test/src/fns-tests.el
@@ -166,6 +166,8 @@
166 (should (equal (should-error (sort "cba" #'<) :type 'wrong-type-argument) 166 (should (equal (should-error (sort "cba" #'<) :type 'wrong-type-argument)
167 '(wrong-type-argument list-or-vector-p "cba")))) 167 '(wrong-type-argument list-or-vector-p "cba"))))
168 168
169(defvar w32-collate-ignore-punctuation)
170
169(ert-deftest fns-tests-collate-sort () 171(ert-deftest fns-tests-collate-sort ()
170 (skip-unless (fns-tests--collate-enabled-p)) 172 (skip-unless (fns-tests--collate-enabled-p))
171 173
@@ -228,9 +230,9 @@
228 (should (equal (func-arity 'format) '(1 . many))) 230 (should (equal (func-arity 'format) '(1 . many)))
229 (require 'info) 231 (require 'info)
230 (should (equal (func-arity 'Info-goto-node) '(1 . 3))) 232 (should (equal (func-arity 'Info-goto-node) '(1 . 3)))
231 (should (equal (func-arity (lambda (&rest x))) '(0 . many))) 233 (should (equal (func-arity (lambda (&rest _x))) '(0 . many)))
232 (should (equal (func-arity (eval '(lambda (x &optional y)) nil)) '(1 . 2))) 234 (should (equal (func-arity (eval '(lambda (_x &optional y)) nil)) '(1 . 2)))
233 (should (equal (func-arity (eval '(lambda (x &optional y)) t)) '(1 . 2))) 235 (should (equal (func-arity (eval '(lambda (_x &optional y)) t)) '(1 . 2)))
234 (should (equal (func-arity 'let) '(1 . unevalled)))) 236 (should (equal (func-arity 'let) '(1 . unevalled))))
235 237
236(defun fns-tests--string-repeat (s o) 238(defun fns-tests--string-repeat (s o)