[Seaside-dev] Troubles with WANumberPrinter>>printFloat:on:
Michael Lucas-Smith
mlucas-smith at cincom.com
Thu Jun 4 19:08:14 UTC 2009
Lukas Renggli wrote:
>> So it's not just the implementation that's broken, but you could also argue
>> that the tests themselves are asserting the wrong thing.
>>
>
> Two tests are clearly broken, their rounding is wrong. I fixed these
> tests and then fixed the code to actually give a correctly rounded
> last digit. Maybe that solves also the VisualWorks problems?
>
>
It solves all but two:
WAPrinterTest>>testFloatPrinter fails doing
self assert: (convert print: 0.99) = '0.99'
The resulting output is '0.98'
WAPrinterTest>>testFloatPrinterSeparator fails doing
self assert: (converter print: 12345.67890) = '12!345.678!9'
The resulting output is '12!345.679!6'
More information about the seaside-dev
mailing list