diff options
| author | Tom Tromey | 2018-07-08 00:10:54 -0600 |
|---|---|---|
| committer | Tom Tromey | 2018-07-12 22:12:28 -0600 |
| commit | cca0e79ea81712786f92a6668c61001e60d24f32 (patch) | |
| tree | 484932514b6ec9f21a623363f441bd862064353e /test/src | |
| parent | 3dea8f8f53f81a1d15a55c9e3c87a7eade7ca273 (diff) | |
| download | emacs-cca0e79ea81712786f92a6668c61001e60d24f32.tar.gz emacs-cca0e79ea81712786f92a6668c61001e60d24f32.zip | |
Make logb handle bignums
* src/floatfns.c (Flogb): Handle bignums.
* test/src/floatfns-tests.el (bignum-logb): New test.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/floatfns-tests.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/src/floatfns-tests.el b/test/src/floatfns-tests.el index 0911ff46515..7714c05d60a 100644 --- a/test/src/floatfns-tests.el +++ b/test/src/floatfns-tests.el | |||
| @@ -42,4 +42,8 @@ | |||
| 42 | (should (= most-positive-fixnum | 42 | (should (= most-positive-fixnum |
| 43 | (- (abs most-negative-fixnum) 1)))) | 43 | (- (abs most-negative-fixnum) 1)))) |
| 44 | 44 | ||
| 45 | (ert-deftest bignum-logb () | ||
| 46 | (should (= (+ (logb most-positive-fixnum) 1) | ||
| 47 | (logb (+ most-positive-fixnum 1))))) | ||
| 48 | |||
| 45 | (provide 'floatfns-tests) | 49 | (provide 'floatfns-tests) |