consolidatePointAverageTest{27.0, 7.0, 5.1},
}
-func FloatsDiffer (a, b float64) bool {
+func floatsDiffer (a, b float64) bool {
if math.Fabs (a - b) > 1.0e-6 {
return true
}
testCase := consolidatePointAverageTests[i]
dp := obj.ConsolidatePointAverage (testCase.tsStart, testCase.tsEnd);
- if FloatsDiffer (dp.Rate, testCase.rate) {
+ if floatsDiffer (dp.Rate, testCase.rate) {
t.Errorf ("ConsolidatePointAverage (%g, %g) failed: Expected %g, got %g",
testCase.tsStart, testCase.tsEnd, testCase.rate, dp.Rate);
}