summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/timer-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/emacs-lisp/timer-tests.el')
-rw-r--r--test/lisp/emacs-lisp/timer-tests.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/timer-tests.el b/test/lisp/emacs-lisp/timer-tests.el
index c5971ee7687..7a5b9263b0b 100644
--- a/test/lisp/emacs-lisp/timer-tests.el
+++ b/test/lisp/emacs-lisp/timer-tests.el
@@ -44,4 +44,12 @@
(timer-next-integral-multiple-of-time '(0 0 0 1) (1+ (ash 1 53)))
(list (ash 1 (- 53 16)) 1))))
+(ert-deftest timer-next-integral-multiple-of-time-2 ()
+ "Test bug#33071."
+ (let* ((tc (current-time))
+ (tce (encode-time tc 100))
+ (nt (timer-next-integral-multiple-of-time tc 0.01))
+ (nte (encode-time nt 100)))
+ (should (= (car nte) (1+ (car tce))))))
+
;;; timer-tests.el ends here