diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/data-tests.el | 6 | ||||
| -rw-r--r-- | test/src/fns-tests.el | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/test/src/data-tests.el b/test/src/data-tests.el index 07159df48cf..ee6a3eb9222 100644 --- a/test/src/data-tests.el +++ b/test/src/data-tests.el | |||
| @@ -105,7 +105,9 @@ | |||
| 105 | (should (isnan (min 0.0e+NaN))) | 105 | (should (isnan (min 0.0e+NaN))) |
| 106 | (should (isnan (min 0.0e+NaN 1 2))) | 106 | (should (isnan (min 0.0e+NaN 1 2))) |
| 107 | (should (isnan (min 1.0 0.0e+NaN))) | 107 | (should (isnan (min 1.0 0.0e+NaN))) |
| 108 | (should (isnan (min 1.0 0.0e+NaN 1.1)))) | 108 | (should (isnan (min 1.0 0.0e+NaN 1.1))) |
| 109 | (should (isnan (min 1.0 0.0e+NaN 1.1 (1+ most-positive-fixnum)))) | ||
| 110 | (should (isnan (max 1.0 0.0e+NaN 1.1 (1+ most-positive-fixnum))))) | ||
| 109 | 111 | ||
| 110 | (defun data-tests-popcnt (byte) | 112 | (defun data-tests-popcnt (byte) |
| 111 | "Calculate the Hamming weight of BYTE." | 113 | "Calculate the Hamming weight of BYTE." |
| @@ -618,6 +620,6 @@ comparing the subr with a much slower lisp implementation." | |||
| 618 | (should (= (ash most-negative-fixnum 1) | 620 | (should (= (ash most-negative-fixnum 1) |
| 619 | (* most-negative-fixnum 2))) | 621 | (* most-negative-fixnum 2))) |
| 620 | (should (= (lsh most-negative-fixnum 1) | 622 | (should (= (lsh most-negative-fixnum 1) |
| 621 | (* (abs most-negative-fixnum) 2)))) | 623 | (* most-negative-fixnum 2)))) |
| 622 | 624 | ||
| 623 | ;;; data-tests.el ends here | 625 | ;;; data-tests.el ends here |
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index f5f3b892441..d440cfabda4 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el | |||
| @@ -599,6 +599,7 @@ | |||
| 599 | (y (+ most-positive-fixnum 1))) | 599 | (y (+ most-positive-fixnum 1))) |
| 600 | (should (eq x x)) | 600 | (should (eq x x)) |
| 601 | (should (eql x y)) | 601 | (should (eql x y)) |
| 602 | (should (equal x y)))) | 602 | (should (equal x y)) |
| 603 | (should-not (eql x 0.0e+NaN)))) | ||
| 603 | 604 | ||
| 604 | (provide 'fns-tests) | 605 | (provide 'fns-tests) |