core: Fixes for int-max, int-min.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 2 May 2018 21:11:27 +0000 (23:11 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 2 May 2018 21:11:27 +0000 (23:11 +0200)
commit99718a8b7af2c56dea31b457c612d3ee686f1fd7
tree6d7fdfcbf3a85a5bafd6b194195be1be7ecd17ec
parentf8eaebf7138ce13ad8523c2f0060b6b998426ec8
core: Fixes for int-max, int-min.

* src/math.c (greater_p): Fix INT_MAX > 0.
  (less_p): Fix INT_MIN < 0.
* tests/math.test ("< INT-MIN"): Test it.
  ("< INT-MAX"):
  ("> INT-MAX"):
  ("> INT-MAX 0"):
  ("> INT-MIN"):
* tests/srfi-13.test ("string->number INT-MAX"): Test it.
  ("string->number INT-MIN"):
  ("number->string INT-MAX"):
  ("number->string INT-MIN"):
* scaffold/tests/60-math.c (test): Test it.
scaffold/tests/60-math.c
src/math.c
tests/math.test
tests/srfi-13.test