diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-01-01 13:18:50 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-01-01 13:18:50 +0100 |
commit | da77d70deeb2798693ec4f28a291befeb8e43989 (patch) | |
tree | f2a4a88931f4daf592c0533062aa7460b13f330a /test/lisp/emacs-lisp | |
parent | 2baf9e107c1d6f1c71f5804b6bd933d3f5d6a9ea (diff) | |
download | emacs-da77d70deeb2798693ec4f28a291befeb8e43989.tar.gz emacs-da77d70deeb2798693ec4f28a291befeb8e43989.tar.bz2 emacs-da77d70deeb2798693ec4f28a291befeb8e43989.zip |
; * test/lisp/emacs-lisp/copyright-tests.el: Fix and future-safe.
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/copyright-tests.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/emacs-lisp/copyright-tests.el b/test/lisp/emacs-lisp/copyright-tests.el index ef531174617..5f8b5c67896 100644 --- a/test/lisp/emacs-lisp/copyright-tests.el +++ b/test/lisp/emacs-lisp/copyright-tests.el @@ -59,7 +59,8 @@ "\nCopyright 2006, 2007, 2008 Foo Bar\n\n") (copyright-update) (buffer-substring (- (point-max) 42) (point-max)))) - "Copyright 2006, 2007, 2008, 2022 Foo Bar\n\n"))) + (format "Copyright 2006, 2007, 2008, %s Foo Bar\n\n" + (format-time-string "%Y"))))) (ert-deftest test-correct-notice () (should (equal @@ -70,7 +71,8 @@ (copyright-query nil)) (copyright-update)) (buffer-string)) - "Copyright 2021 FSF\nCopyright 2021, 2022 FSF\n"))) + (format "Copyright 2021 FSF\nCopyright 2021, %s FSF\n" + (format-time-string "%Y"))))) (defmacro with-copyright-fix-years-test (orig result) `(let ((copyright-year-ranges t)) |