aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/emacs-module-tests.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index 78f238140da..9eb38cd4548 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -326,8 +326,12 @@ Interactively, you can try hitting \\[keyboard-quit] to quit."
326 ;; New (TICKS . HZ) format. 326 ;; New (TICKS . HZ) format.
327 '(123456789 . 1000000000))) 327 '(123456789 . 1000000000)))
328 (ert-info ((format "input: %s" input)) 328 (ert-info ((format "input: %s" input))
329 (should (time-equal-p (mod-test-add-nanosecond input) 329 (let ((result (mod-test-add-nanosecond input)))
330 (time-add input '(0 0 0 1000))))))) 330 (should (consp result))
331 (should (integerp (car result)))
332 (should (integerp (cdr result)))
333 (should (cl-plusp (cdr result)))
334 (should (time-equal-p result (time-add input '(0 0 0 1000))))))))
331 335
332(ert-deftest mod-test-add-nanosecond/nil () 336(ert-deftest mod-test-add-nanosecond/nil ()
333 (should (<= (float-time (mod-test-add-nanosecond nil)) 337 (should (<= (float-time (mod-test-add-nanosecond nil))