aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/editfns-tests.el
diff options
context:
space:
mode:
authorStefan Kangas2020-08-29 20:55:46 +0200
committerStefan Kangas2020-08-29 22:41:51 +0200
commit2aeff0794a2b2b86ffe4325a8c677ebbfb2afa1f (patch)
treecb728d6209697b76f62084e82c7f92019e375743 /test/src/editfns-tests.el
parente709c187fde76573ea3ec3a5f14e09b9ed59525f (diff)
downloademacs-2aeff0794a2b2b86ffe4325a8c677ebbfb2afa1f.tar.gz
emacs-2aeff0794a2b2b86ffe4325a8c677ebbfb2afa1f.zip
Use lexical-binding in more tests
* test/lib-src/emacsclient-tests.el: * test/lisp/emacs-lisp/hierarchy-tests.el: * test/lisp/eshell/eshell-tests.el: * test/lisp/gnus/gnus-util-tests.el: * test/lisp/progmodes/js-tests.el: * test/lisp/textmodes/bibtex-tests.el: * test/src/editfns-tests.el: * test/src/fns-tests.el: Use lexical-binding. * test/lisp/emacs-lisp/hierarchy-tests.el (hierarchy-leafs-includes-lonely-roots): * test/src/editfns-tests.el (transpose-test-get-byte-positions): * test/src/fns-tests.el (fns-tests-func-arity): Adjust for lexical-binding.
Diffstat (limited to 'test/src/editfns-tests.el')
-rw-r--r--test/src/editfns-tests.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/src/editfns-tests.el b/test/src/editfns-tests.el
index d7c7aec17c3..de0aeabfe78 100644
--- a/test/src/editfns-tests.el
+++ b/test/src/editfns-tests.el
@@ -1,4 +1,4 @@
1;;; editfns-tests.el -- tests for editfns.c 1;;; editfns-tests.el -- tests for editfns.c -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 2016-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2016-2020 Free Software Foundation, Inc.
4 4
@@ -124,8 +124,8 @@
124 "Validate character position to byte position translation." 124 "Validate character position to byte position translation."
125 (let ((bytes '())) 125 (let ((bytes '()))
126 (dotimes (pos len) 126 (dotimes (pos len)
127 (setq bytes (add-to-list 'bytes (position-bytes (1+ pos)) t))) 127 (push (position-bytes (1+ pos)) bytes))
128 bytes)) 128 (nreverse bytes)))
129 129
130(ert-deftest transpose-ascii-regions-test () 130(ert-deftest transpose-ascii-regions-test ()
131 (with-temp-buffer 131 (with-temp-buffer