From f06f46a21ef3037be233da564b0a6f1408fe3ef8 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Sun, 10 Jul 2016 11:26:37 -0700 Subject: [PATCH] cleanup --- series_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 series_test.go diff --git a/series_test.go b/series_test.go deleted file mode 100644 index 3194997..0000000 --- a/series_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package chart - -import ( - "testing" - "time" - - "github.com/blendlabs/go-assert" -) - -func TestTimeSeriesGetValue(t *testing.T) { - assert := assert.New(t) - - ts := TimeSeries{ - Name: "Test", - XValues: []time.Time{ - time.Now().AddDate(0, 0, -5), - time.Now().AddDate(0, 0, -4), - time.Now().AddDate(0, 0, -3), - time.Now().AddDate(0, 0, -2), - time.Now().AddDate(0, 0, -1), - }, - YValues: []float64{ - 1.0, 2.0, 3.0, 4.0, 5.0, - }, - } - - x0, y0 := ts.GetValue(0) - assert.NotZero(x0) - assert.Equal(1.0, y0) -}