← Back to team overview

dhis2-devs team mailing list archive

aggregationservicetest error

 

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



Follow ups