diff options
| author | Tom Tromey | 2018-08-11 13:34:17 -0600 |
|---|---|---|
| committer | Tom Tromey | 2018-08-11 13:34:17 -0600 |
| commit | 78ec68e18f07a90a9ad400683b973ff51baa80e1 (patch) | |
| tree | 638c986bf753e3ddab9992ba1ef0a10a3d4891f0 /test/src/floatfns-tests.el | |
| parent | ba1c4f63e3d2adbe9b590a3c51c2a0808c84723f (diff) | |
| parent | 79f59d41a3d2ef3b4a9a87265bf517206a5837ad (diff) | |
| download | emacs-78ec68e18f07a90a9ad400683b973ff51baa80e1.tar.gz emacs-78ec68e18f07a90a9ad400683b973ff51baa80e1.zip | |
Merge branch 'feature/bignum'
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) |