diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/timer-tests.el | 8 |
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 @@ | |||
| 44 | (timer-next-integral-multiple-of-time '(0 0 0 1) (1+ (ash 1 53))) | 44 | (timer-next-integral-multiple-of-time '(0 0 0 1) (1+ (ash 1 53))) |
| 45 | (list (ash 1 (- 53 16)) 1)))) | 45 | (list (ash 1 (- 53 16)) 1)))) |
| 46 | 46 | ||
| 47 | (ert-deftest timer-next-integral-multiple-of-time-2 () | ||
| 48 | "Test bug#33071." | ||
| 49 | (let* ((tc (current-time)) | ||
| 50 | (tce (encode-time tc 100)) | ||
| 51 | (nt (timer-next-integral-multiple-of-time tc 0.01)) | ||
| 52 | (nte (encode-time nt 100))) | ||
| 53 | (should (= (car nte) (1+ (car tce)))))) | ||
| 54 | |||
| 47 | ;;; timer-tests.el ends here | 55 | ;;; timer-tests.el ends here |