diff options
Diffstat (limited to 'test/src/floatfns-tests.el')
| -rw-r--r-- | test/src/floatfns-tests.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/src/floatfns-tests.el b/test/src/floatfns-tests.el index cb173eea76d..7714c05d60a 100644 --- a/test/src/floatfns-tests.el +++ b/test/src/floatfns-tests.el | |||
| @@ -34,4 +34,16 @@ | |||
| 34 | (should-error (ftruncate 0) :type 'wrong-type-argument) | 34 | (should-error (ftruncate 0) :type 'wrong-type-argument) |
| 35 | (should-error (fround 0) :type 'wrong-type-argument)) | 35 | (should-error (fround 0) :type 'wrong-type-argument)) |
| 36 | 36 | ||
| 37 | (ert-deftest bignum-to-float () | ||
| 38 | (should (eql (float (+ most-positive-fixnum 1)) | ||
| 39 | (+ (float most-positive-fixnum) 1)))) | ||
| 40 | |||
| 41 | (ert-deftest bignum-abs () | ||
| 42 | (should (= most-positive-fixnum | ||
| 43 | (- (abs most-negative-fixnum) 1)))) | ||
| 44 | |||
| 45 | (ert-deftest bignum-logb () | ||
| 46 | (should (= (+ (logb most-positive-fixnum) 1) | ||
| 47 | (logb (+ most-positive-fixnum 1))))) | ||
| 48 | |||
| 37 | (provide 'floatfns-tests) | 49 | (provide 'floatfns-tests) |