aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/editfns-tests.el6
-rw-r--r--test/src/fns-tests.el6
2 files changed, 6 insertions, 6 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
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el
index 400e9126486..b9a7d29895a 100644
--- a/test/src/fns-tests.el
+++ b/test/src/fns-tests.el
@@ -1,4 +1,4 @@
1;;; fns-tests.el --- tests for src/fns.c 1;;; fns-tests.el --- tests for src/fns.c -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 2014-2020 Free Software Foundation, Inc. 3;; Copyright (C) 2014-2020 Free Software Foundation, Inc.
4 4
@@ -229,8 +229,8 @@
229 (require 'info) 229 (require 'info)
230 (should (equal (func-arity 'Info-goto-node) '(1 . 3))) 230 (should (equal (func-arity 'Info-goto-node) '(1 . 3)))
231 (should (equal (func-arity (lambda (&rest x))) '(0 . many))) 231 (should (equal (func-arity (lambda (&rest x))) '(0 . many)))
232 (should (equal (func-arity (eval (lambda (x &optional y)) nil)) '(1 . 2))) 232 (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))) 233 (should (equal (func-arity (eval '(lambda (x &optional y)) t)) '(1 . 2)))
234 (should (equal (func-arity 'let) '(1 . unevalled)))) 234 (should (equal (func-arity 'let) '(1 . unevalled))))
235 235
236(defun fns-tests--string-repeat (s o) 236(defun fns-tests--string-repeat (s o)