aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/floatfns-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/floatfns-tests.el')
-rw-r--r--test/src/floatfns-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/floatfns-tests.el b/test/src/floatfns-tests.el
index 6820130a017..04ee97a6137 100644
--- a/test/src/floatfns-tests.el
+++ b/test/src/floatfns-tests.el
@@ -120,7 +120,7 @@
120 -2 -1 0 1 2)) 120 -2 -1 0 1 2))
121 (should (or (<= n 0) (= (expt 0 n) 0))) 121 (should (or (<= n 0) (= (expt 0 n) 0)))
122 (should (= (expt 1 n) 1)) 122 (should (= (expt 1 n) 1))
123 (should (or (< n 0) (= (expt -1 n) (if (zerop (logand n 1)) 1 -1)))) 123 (should (or (< n 0) (= (expt -1 n) (if (evenp n) 1 -1))))
124 (should (= (expt n 0) 1)) 124 (should (= (expt n 0) 1))
125 (should (= (expt n 1) n)) 125 (should (= (expt n 1) n))
126 (should (= (expt n 2) (* n n))) 126 (should (= (expt n 2) (* n n)))
@@ -167,7 +167,7 @@
167 (should (if (zerop r) 167 (should (if (zerop r)
168 (= 0 cdelta fdelta rdelta) 168 (= 0 cdelta fdelta rdelta)
169 (or (/= cdelta fdelta) 169 (or (/= cdelta fdelta)
170 (zerop (% (round n d) 2))))))))))) 170 (evenp (round n d)))))))))))
171 171
172(ert-deftest special-round () 172(ert-deftest special-round ()
173 (dolist (f '(ceiling floor round truncate)) 173 (dolist (f '(ceiling floor round truncate))