[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] [PATCH] Make library tests compare numbers within epsilo
From: |
John Long |
Subject: |
[Chicken-users] [PATCH] Make library tests compare numbers within epsilon [Was Re: Is chicken supported on 32 bit Linux?] |
Date: |
Wed, 29 May 2013 18:12:32 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
> 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.
>
> Could you try whether "make check" on a -O3-compiled CHICKEN succeeds with
> the attached patch?
>
> Cheers,
> Peter
Thanks Peter and Sven, I'll get back to you tomorrow on this.
/jl
--
ASCII ribbon campaign ( ) Powered by Lemote Fuloong
against HTML e-mail X Loongson MIPS and OpenBSD
and proprietary / \ http://www.mutt.org
attachments / \ Code Blue or Go Home!
Encrypted email preferred PGP Key 2048R/DA65BC04
- [Chicken-users] [PATCH] Make library tests compare numbers within epsilon [Was Re: Is chicken supported on 32 bit Linux?],
John Long <=