Make number-to-string work for bignums
* src/data.c (Fnumber_to_string): Handle bignum. * test/src/data-tests.el (data-tests-number-to-string): New test.
This commit is contained in:
@@ -574,4 +574,9 @@ comparing the subr with a much slower lisp implementation."
|
||||
(should-not (fixnump (+ most-positive-fixnum 1)))
|
||||
(should (bignump (+ most-positive-fixnum 1))))
|
||||
|
||||
(ert-deftest data-tests-number-to-string ()
|
||||
(let* ((s "99999999999999999999999999999")
|
||||
(v (read s)))
|
||||
(should (equal (number-to-string v) s))))
|
||||
|
||||
;;; data-tests.el ends here
|
||||
|
||||
Reference in New Issue
Block a user