Skip to content

Commit 9e743cb

Browse files
committed
simplify testing
1 parent 1c4bf80 commit 9e743cb

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

pine/series_kc_test.go

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ import (
1010
)
1111

1212
// TestSeriesKC tests no data scenario
13-
//
14-
// t=time.Time (no iteration) | |
15-
// p=ValueSeries | |
16-
// kc=ValueSeries | |
1713
func TestSeriesKC(t *testing.T) {
1814

19-
start := time.Now()
20-
data := OHLCVTestData(start, 4, 5*60*1000)
15+
data := OHLCVStaticTestData()
2116

2217
series, err := NewOHLCVSeries(data)
2318
if err != nil {
@@ -41,19 +36,9 @@ func TestSeriesKC(t *testing.T) {
4136
}
4237

4338
// TestSeriesKCNoIteration tests this sceneario where there's no iteration yet
44-
//
45-
// t=time.Time (no iteration) | 1 | 2 | 3 | 4 |
46-
// p=ValueSeries | 14 | 15 | 17 | 18 |
47-
// kc=ValueSeries | | | | |
4839
func TestSeriesKCNoIteration(t *testing.T) {
4940

50-
start := time.Now()
51-
data := OHLCVTestData(start, 4, 5*60*1000)
52-
data[0].C = 14
53-
data[1].C = 15
54-
data[2].C = 17
55-
data[3].C = 18
56-
41+
data := OHLCVStaticTestData()
5742
series, err := NewOHLCVSeries(data)
5843
if err != nil {
5944
t.Fatal(err)

0 commit comments

Comments
 (0)