aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorPaul Eggert2022-06-15 23:08:03 -0500
committerPaul Eggert2022-06-15 23:27:08 -0500
commit9a2be29672b8569406777af24d60f0afabf8b52d (patch)
treeff6d843f9390d5c1aa1894777ce86e4de3969a66 /test/src
parent9bce1f3d7019f00f7c1c889d8be7832e9b645bec (diff)
downloademacs-9a2be29672b8569406777af24d60f0afabf8b52d.tar.gz
emacs-9a2be29672b8569406777af24d60f0afabf8b52d.zip
Don’t test time functions for NaNs, INF
* 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.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/timefns-tests.el6
1 files changed, 0 insertions, 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 @@
93 most-negative-fixnum most-positive-fixnum 93 most-negative-fixnum most-positive-fixnum
94 (1- most-negative-fixnum) 94 (1- most-negative-fixnum)
95 (1+ most-positive-fixnum) 95 (1+ most-positive-fixnum)
96 1e+INF -1e+INF 1e+NaN -1e+NaN
97 '(0 1 0 0) '(1 0 0 0) '(-1 0 0 0) 96 '(0 1 0 0) '(1 0 0 0) '(-1 0 0 0)
98 '(123456789000000 . 1000000) 97 '(123456789000000 . 1000000)
99 (cons (1+ most-positive-fixnum) 1000000000000) 98 (cons (1+ most-positive-fixnum) 1000000000000)
@@ -169,10 +168,6 @@ a fixed place on the right and are padded on the left."
169(ert-deftest time-equal-p-nil-nil () 168(ert-deftest time-equal-p-nil-nil ()
170 (should (time-equal-p nil nil))) 169 (should (time-equal-p nil nil)))
171 170
172(ert-deftest time-equal-p-NaN-NaN ()
173 (let ((x 0.0e+NaN))
174 (should (not (time-equal-p x x)))))
175
176(ert-deftest time-arith-tests () 171(ert-deftest time-arith-tests ()
177 (let ((time-values (list 0 -1 1 0.0 -0.0 -1.0 1.0 172 (let ((time-values (list 0 -1 1 0.0 -0.0 -1.0 1.0
178 most-negative-fixnum most-positive-fixnum 173 most-negative-fixnum most-positive-fixnum
@@ -184,7 +179,6 @@ a fixed place on the right and are padded on the left."
184 1e10 -1e10 1e-10 -1e-10 179 1e10 -1e10 1e-10 -1e-10
185 1e16 -1e16 1e-16 -1e-16 180 1e16 -1e16 1e-16 -1e-16
186 1e37 -1e37 1e-37 -1e-37 181 1e37 -1e37 1e-37 -1e-37
187 1e+INF -1e+INF 1e+NaN -1e+NaN
188 '(0 0 0 1) '(0 0 1 0) '(0 1 0 0) '(1 0 0 0) 182 '(0 0 0 1) '(0 0 1 0) '(0 1 0 0) '(1 0 0 0)
189 '(-1 0 0 0) '(1 2 3 4) '(-1 2 3 4) 183 '(-1 0 0 0) '(1 2 3 4) '(-1 2 3 4)
190 '(-123456789 . 100000) '(123456789 . 1000000) 184 '(-123456789 . 100000) '(123456789 . 1000000)