X-Git-Url: https://git.octo.it/?p=otsdb-go.git;a=blobdiff_plain;f=ots_timeseries_test.go;fp=ots_timeseries_test.go;h=8b69eb823f3cfeecf43be015036139409c961463;hp=8df850e373adecb6b03518642241af277aadfce3;hb=977787ef46f4aa56ab39b331ecd0969decd701df;hpb=c440adb8c05c78b612296b8f08f0ef7b727eb5e7 diff --git a/ots_timeseries_test.go b/ots_timeseries_test.go index 8df850e..8b69eb8 100644 --- a/ots_timeseries_test.go +++ b/ots_timeseries_test.go @@ -45,7 +45,7 @@ var consolidatePointAverageTests = []consolidatePointAverageTest { 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 } @@ -60,7 +60,7 @@ func TestConsolidatePointAverage (t *testing.T) { 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); }