[fpc-devel] FormatFloat bug

Graeme Geldenhuys graemeg.lists at gmail.com
Tue May 29 19:36:35 CEST 2007


Hi,

Attached is a application that demonstrates a bug in FormatFloat.  All
tests pass when run under Delphi, but test four fails under Free
Pascal.

Here is the application output:

-------------------------------------------
$ ./project1
 Time:00.001 N:7 E:0 F:1 I:0
  TTestFormatFloat Time:00.001 N:7 E:0 F:1 I:0
    00.000  Test1
    00.000  Test2
    00.000  Test3
    00.000  Test4  Failed: Failed on 4 expected: <$ 0.01> but was: <$ 0.00>
    00.000  Test5
    00.000  Test6
    00.000  Test7

Number of run tests: 7
Number of errors:    0
Number of failures:  1

List of failures:
  Failure:
    Message:           TTestFormatFloat.Test4: Failed on 4 expected:
<$ 0.01> but was: <$ 0.00>
    Exception class:   EAssertionFailedError
    Exception message: Failed on 4 expected: <$ 0.01> but was: <$ 0.00>

-------------------------------------------

-- 
Graeme Geldenhuys

General error, hit any user to continue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: project1.lpr
Type: application/octet-stream
Size: 2629 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070529/4b5b52d1/attachment.obj>


More information about the fpc-devel mailing list