diff options
| author | YAMAMOTO Mitsuharu | 2019-05-23 10:53:23 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2019-05-23 10:53:23 +0900 |
| commit | b40dde705af4d53853de6185a2468153b442dc9a (patch) | |
| tree | e8dabba695163c2d07439fad6accff761f8f714c /test/src | |
| parent | 5d7dafacf4afc888511649f6fc24c28210cd0dfc (diff) | |
| parent | 03feb9376b54c489e24478954a11061e9b0d6db7 (diff) | |
| download | emacs-b40dde705af4d53853de6185a2468153b442dc9a.tar.gz emacs-b40dde705af4d53853de6185a2468153b442dc9a.zip | |
Merge branch 'master' into harfbuzz
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/emacs-module-tests.el | 15 | ||||
| -rw-r--r-- | test/src/lcms-tests.el | 2 | ||||
| -rw-r--r-- | test/src/timefns-tests.el | 6 |
3 files changed, 18 insertions, 5 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el index 173b63670fc..5349de055ed 100644 --- a/test/src/emacs-module-tests.el +++ b/test/src/emacs-module-tests.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; Test GNU Emacs modules. | 1 | ;;; emacs-module-tests --- Test GNU Emacs modules. -*- lexical-binding: t; -*- |
| 2 | 2 | ||
| 3 | ;; Copyright 2015-2019 Free Software Foundation, Inc. | 3 | ;; Copyright 2015-2019 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -17,6 +17,14 @@ | |||
| 17 | ;; You should have received a copy of the GNU General Public License | 17 | ;; You should have received a copy of the GNU General Public License |
| 18 | ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | 18 | ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | ;;; Commentary: | ||
| 21 | |||
| 22 | ;; Unit tests for the dynamic module facility. See Info node `(elisp) | ||
| 23 | ;; Writing Dynamic Modules'. These tests make use of a small test | ||
| 24 | ;; module in test/data/emacs-module. | ||
| 25 | |||
| 26 | ;;; Code: | ||
| 27 | |||
| 20 | (require 'cl-lib) | 28 | (require 'cl-lib) |
| 21 | (require 'ert) | 29 | (require 'ert) |
| 22 | (require 'help-fns) | 30 | (require 'help-fns) |
| @@ -137,8 +145,9 @@ changes." | |||
| 137 | ;; | 145 | ;; |
| 138 | 146 | ||
| 139 | (defun multiply-string (s n) | 147 | (defun multiply-string (s n) |
| 148 | "Return N copies of S concatenated together." | ||
| 140 | (let ((res "")) | 149 | (let ((res "")) |
| 141 | (dotimes (i n) | 150 | (dotimes (_ n) |
| 142 | (setq res (concat res s))) | 151 | (setq res (concat res s))) |
| 143 | res)) | 152 | res)) |
| 144 | 153 | ||
| @@ -304,7 +313,7 @@ Interactively, you can try hitting \\[keyboard-quit] to quit." | |||
| 304 | ;; Interactively, run for 5 seconds to give the | 313 | ;; Interactively, run for 5 seconds to give the |
| 305 | ;; user time to quit. In batch mode, run only | 314 | ;; user time to quit. In batch mode, run only |
| 306 | ;; briefly since the user can't quit. | 315 | ;; briefly since the user can't quit. |
| 307 | (float-time (time-add nil (if noninteractive 0.1 5))) | 316 | (time-add nil (if noninteractive 0.1 5)) |
| 308 | ;; should_quit or process_input | 317 | ;; should_quit or process_input |
| 309 | arg)) | 318 | arg)) |
| 310 | 'finished)) | 319 | 'finished)) |
diff --git a/test/src/lcms-tests.el b/test/src/lcms-tests.el index f1d1110283d..d92ebcbeab5 100644 --- a/test/src/lcms-tests.el +++ b/test/src/lcms-tests.el | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2017-2019 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2017-2019 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: emacs-devel@gnu.org | ||
| 6 | |||
| 7 | ;; This file is part of GNU Emacs. | 5 | ;; This file is part of GNU Emacs. |
| 8 | 6 | ||
| 9 | ;; GNU Emacs is free software: you can redistribute it and/or modify | 7 | ;; GNU Emacs is free software: you can redistribute it and/or modify |
diff --git a/test/src/timefns-tests.el b/test/src/timefns-tests.el index 5c858ef3bd8..2c90af757f0 100644 --- a/test/src/timefns-tests.el +++ b/test/src/timefns-tests.el | |||
| @@ -142,3 +142,9 @@ | |||
| 142 | (< 0.99 (/ x y) 1.01) | 142 | (< 0.99 (/ x y) 1.01) |
| 143 | (< 0.99 (/ (- (float-time a)) (float-time b)) | 143 | (< 0.99 (/ (- (float-time a)) (float-time b)) |
| 144 | 1.01)))))))) | 144 | 1.01)))))))) |
| 145 | |||
| 146 | (ert-deftest encode-time-dst-numeric-zone () | ||
| 147 | "Check for Bug#35502." | ||
| 148 | (should (time-equal-p | ||
| 149 | (encode-time '(29 31 17 30 4 2019 2 t 7200)) | ||
| 150 | '(23752 27217)))) | ||