aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/copyright-tests.el6
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 @@
59 "\nCopyright 2006, 2007, 2008 Foo Bar\n\n") 59 "\nCopyright 2006, 2007, 2008 Foo Bar\n\n")
60 (copyright-update) 60 (copyright-update)
61 (buffer-substring (- (point-max) 42) (point-max)))) 61 (buffer-substring (- (point-max) 42) (point-max))))
62 "Copyright 2006, 2007, 2008, 2022 Foo Bar\n\n"))) 62 (format "Copyright 2006, 2007, 2008, %s Foo Bar\n\n"
63 (format-time-string "%Y")))))
63 64
64(ert-deftest test-correct-notice () 65(ert-deftest test-correct-notice ()
65 (should (equal 66 (should (equal
@@ -70,7 +71,8 @@
70 (copyright-query nil)) 71 (copyright-query nil))
71 (copyright-update)) 72 (copyright-update))
72 (buffer-string)) 73 (buffer-string))
73 "Copyright 2021 FSF\nCopyright 2021, 2022 FSF\n"))) 74 (format "Copyright 2021 FSF\nCopyright 2021, %s FSF\n"
75 (format-time-string "%Y")))))
74 76
75(defmacro with-copyright-fix-years-test (orig result) 77(defmacro with-copyright-fix-years-test (orig result)
76 `(let ((copyright-year-ranges t)) 78 `(let ((copyright-year-ranges t))