← Back to team overview

dhis2-devs team mailing list archive

Re: aggregationservicetest error

 

Look in the surefire reports, can you see the actual value (that
getAggregatedDataValue
returned) ?

On Fri, Sep 17, 2010 at 9:09 PM, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:

> I'm getting a failure on AggregationServiceTest (line 286)
>
> assertEquals( 193.3, aggregationService.getAggregatedDataValue(
> dataElementA, categoryOptionCombo, mar01, may31, unitB ), 0.1
>
> Using ubuntu 9.10 (sun jvm 1.6.0_14)  I get 193.8068181818186.  Anyone
> else have this?
>
> If I'm understanding the data and the algorithm correctly then the
> result should indeed be 193.3.  But there seems to be some floating
> point errors crept in, at least on my platform.
>
> Cheers
> Bob
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>

References