[fpc-devel] Bug 29760 on FPC 3.0 Win64

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Mar 11 15:06:09 CET 2016


LacaK wrote:
> Dňa 11.3.2016 o 14:19 Jonas Maebe napísal(a):
>> LacaK wrote:
>>> Updated file.
>>> If you find it useful add it please to "tests/test" and/or replace
>>> "tw28748.pp" (as it is subset of this)
>>> Or give mee feedback what should be changed, added or so.
>>
>> tests/test/cg/taddcurr.pp contains already most of those tests in a
>> systematic way.
>
> this test was added after FPC 3.0 release ? If yes, then okay. If not
> then this test is not sufficient to catch above mentioned bug

No, this test is much older. That test already checks 
adding/subtracting/multiplying and dividing currency values. Your test 
checks the same with integer/double, but that merely adds type 
conversions from double/integer to currency. It's this type conversion 
that is broken in FPC 3.0, and hence that's what should be tested.


Jonas



More information about the fpc-devel mailing list