FENCEPOSTS.

This commit is contained in:
Will Charczuk 2016-07-27 12:54:40 -07:00
parent fc0f274f51
commit ec4d92fc5e
2 changed files with 11 additions and 13 deletions

View file

@ -65,6 +65,8 @@ func TestLinearRegressionSeriesWindowAndOffset(t *testing.T) {
Window: 10,
}
assert.Equal(10, linRegSeries.Len())
lrx0, lry0 := linRegSeries.GetValue(0)
assert.InDelta(90.0, lrx0, 0.0000001)
assert.InDelta(90.0, lry0, 0.0000001)