diff options
| author | Paul Eggert | 2019-08-15 02:06:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-08-15 02:06:34 -0700 |
| commit | 311fcab8f805cd5cc6eacfe37e97423cd73a795b (patch) | |
| tree | f2003732814f2d9f350ceacf5374c9c1ead1bd78 /test/src | |
| parent | ec13c46bbd15a917ce9f2dd2c6d241088446d769 (diff) | |
| download | emacs-311fcab8f805cd5cc6eacfe37e97423cd73a795b.tar.gz emacs-311fcab8f805cd5cc6eacfe37e97423cd73a795b.zip | |
Port mod-test-nanoseconds to 32-bit Emacs
* test/src/emacs-module-tests.el (mod-test-nanoseconds):
Don’t assume -1000000000 is a fixnum.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/emacs-module-tests.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el index 96a604f9824..c44c386d30b 100644 --- a/test/src/emacs-module-tests.el +++ b/test/src/emacs-module-tests.el | |||
| @@ -368,7 +368,7 @@ Interactively, you can try hitting \\[keyboard-quit] to quit." | |||
| 368 | (let ((input (car test-case)) | 368 | (let ((input (car test-case)) |
| 369 | (expected (cdr test-case))) | 369 | (expected (cdr test-case))) |
| 370 | (ert-info ((format "input: %S, expected result: %d" input expected)) | 370 | (ert-info ((format "input: %S, expected result: %d" input expected)) |
| 371 | (should (eq (mod-test-nanoseconds input) expected)))))) | 371 | (should (= (mod-test-nanoseconds input) expected)))))) |
| 372 | 372 | ||
| 373 | (ert-deftest mod-test-double () | 373 | (ert-deftest mod-test-double () |
| 374 | (dolist (input (list 0 1 2 -1 42 12345678901234567890 | 374 | (dolist (input (list 0 1 2 -1 42 12345678901234567890 |