From 9a2be29672b8569406777af24d60f0afabf8b52d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 15 Jun 2022 23:08:03 -0500 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20test=20time=20functions=20for=20?= =?utf8?q?NaNs,=20INF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * test/src/timefns-tests.el (decode-then-encode-time) (time-equal-p-NaN-NaN, time-arith-tests): Don’t test time functions with infinities and NaNs, which are not Lisp time values. --- test/src/timefns-tests.el | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/src/timefns-tests.el b/test/src/timefns-tests.el index 08d06f27d9e..24f9000ffbd 100644 --- a/test/src/timefns-tests.el +++ b/test/src/timefns-tests.el @@ -93,7 +93,6 @@ most-negative-fixnum most-positive-fixnum (1- most-negative-fixnum) (1+ most-positive-fixnum) - 1e+INF -1e+INF 1e+NaN -1e+NaN '(0 1 0 0) '(1 0 0 0) '(-1 0 0 0) '(123456789000000 . 1000000) (cons (1+ most-positive-fixnum) 1000000000000) @@ -169,10 +168,6 @@ a fixed place on the right and are padded on the left." (ert-deftest time-equal-p-nil-nil () (should (time-equal-p nil nil))) -(ert-deftest time-equal-p-NaN-NaN () - (let ((x 0.0e+NaN)) - (should (not (time-equal-p x x))))) - (ert-deftest time-arith-tests () (let ((time-values (list 0 -1 1 0.0 -0.0 -1.0 1.0 most-negative-fixnum most-positive-fixnum @@ -184,7 +179,6 @@ a fixed place on the right and are padded on the left." 1e10 -1e10 1e-10 -1e-10 1e16 -1e16 1e-16 -1e-16 1e37 -1e37 1e-37 -1e-37 - 1e+INF -1e+INF 1e+NaN -1e+NaN '(0 0 0 1) '(0 0 1 0) '(0 1 0 0) '(1 0 0 0) '(-1 0 0 0) '(1 2 3 4) '(-1 2 3 4) '(-123456789 . 100000) '(123456789 . 1000000) -- 2.39.2