summaryrefslogtreecommitdiff
path: root/test/lisp/calendar/time-date-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/calendar/time-date-tests.el')
-rw-r--r--test/lisp/calendar/time-date-tests.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lisp/calendar/time-date-tests.el b/test/lisp/calendar/time-date-tests.el
index b46a247cd30..51250ce5e7a 100644
--- a/test/lisp/calendar/time-date-tests.el
+++ b/test/lisp/calendar/time-date-tests.el
@@ -104,6 +104,12 @@
(should (equal (decoded-time-add time (mdec :zone -7200))
'(12 15 14 8 7 2019 1 t 7200)))))
+(ert-deftest test-time-zone-format ()
+ (should (equal (time-zone-format 3600)
+ "+01:00"))
+ (should (equal (time-zone-format -7200)
+ "-02:00")))
+
(require 'ert)
;;; time-date-tests.el ends here