From 311fcab8f805cd5cc6eacfe37e97423cd73a795b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 15 Aug 2019 02:06:04 -0700 Subject: [PATCH] Port mod-test-nanoseconds to 32-bit Emacs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * test/src/emacs-module-tests.el (mod-test-nanoseconds): Don’t assume -1000000000 is a fixnum. --- test/src/emacs-module-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." (let ((input (car test-case)) (expected (cdr test-case))) (ert-info ((format "input: %S, expected result: %d" input expected)) - (should (eq (mod-test-nanoseconds input) expected)))))) + (should (= (mod-test-nanoseconds input) expected)))))) (ert-deftest mod-test-double () (dolist (input (list 0 1 2 -1 42 12345678901234567890 -- 2.39.2