[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [Chicken-users] [PATCH] Make library tests compare num
From: |
Sven Hartrumpf |
Subject: |
[Chicken-hackers] [Chicken-users] [PATCH] Make library tests compare numbers within epsilon |
Date: |
Wed, 29 May 2013 22:28:14 +0200 (CEST) |
Hi Peter.
Wed, 29 May 2013 19:06:26 +0200, Peter.Bex wrote:
> This patch should fix it, but it does in a roundabout way: converting
> the number to a string causes it to lose precision because of the default
> value of (flonum-print-precision). It's more explicit to check whether
> the two values lie within an epsilon of eachother, like the test egg does.
I hoped that there will be a better patch. Thanks, Peter.
> Could you try whether "make check" on a -O3-compiled CHICKEN succeeds
> with the attached patch?
It does!
(Also for -O2.)
Ciao
Sven