Re: [fpc-pascal] FPCUnit checking Single values

2012-11-02 Thread ik
On Fri, Nov 2, 2012 at 4:01 PM, wrote: > > > On Fri, 2 Nov 2012, ik wrote: > >> Hello, >> >> I'm trying to check Single value. >> >> I'm doing the following: >> >> a := 1.1; >> b := 1.1; >> CheckEquals(a, b, Format('val %f does not equal %f', [a, b])); >> >> It reports an error, one of them are 1

Re: [fpc-pascal] FPCUnit checking Single values

2012-11-02 Thread michael . vancanneyt
On Fri, 2 Nov 2012, ik wrote: Hello, I'm trying to check Single value. I'm doing the following: a := 1.1; b := 1.1; CheckEquals(a, b, Format('val %f does not equal %f', [a, b])); It reports an error, one of them are 1.1 and the other is 1,10 . I know about the possible drifts of floating p

[fpc-pascal] FPCUnit checking Single values

2012-11-02 Thread ik
Hello, I'm trying to check Single value. I'm doing the following: a := 1.1; b := 1.1; CheckEquals(a, b, Format('val %f does not equal %f', [a, b])); It reports an error, one of them are 1.1 and the other is 1,10 . I know about the possible drifts of floating points, but how can I create a test