diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/emacs-module-tests.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el index eea4c611655..78f238140da 100644 --- a/test/src/emacs-module-tests.el +++ b/test/src/emacs-module-tests.el | |||
| @@ -338,4 +338,11 @@ Interactively, you can try hitting \\[keyboard-quit] to quit." | |||
| 338 | (ert-info ((format "input: %s" input)) | 338 | (ert-info ((format "input: %s" input)) |
| 339 | (should-error (mod-test-add-nanosecond input))))) | 339 | (should-error (mod-test-add-nanosecond input))))) |
| 340 | 340 | ||
| 341 | (ert-deftest mod-test-double () | ||
| 342 | (dolist (input (list 0 1 2 -1 42 12345678901234567890 | ||
| 343 | most-positive-fixnum (1+ most-positive-fixnum) | ||
| 344 | most-negative-fixnum (1- most-negative-fixnum))) | ||
| 345 | (ert-info ((format "input: %d" input)) | ||
| 346 | (should (= (mod-test-double input) (* 2 input)))))) | ||
| 347 | |||
| 341 | ;;; emacs-module-tests.el ends here | 348 | ;;; emacs-module-tests.el ends here |