some regression tests

This commit is contained in:
Will Charczuk 2016-07-13 11:50:22 -07:00
parent 07c96b1948
commit c7170a2650
5 changed files with 61 additions and 2 deletions

View file

@ -30,7 +30,7 @@ func (ts TimeSeries) Len() int {
// GetValue gets a value at a given index.
func (ts TimeSeries) GetValue(index int) (x float64, y float64) {
x = float64(ts.XValues[index].Unix())
x = TimeToFloat64(ts.XValues[index])
y = ts.YValues[index]
return
}