diff --git a/ana/prediction_test.go b/ana/prediction_test.go index 777e6db..3921449 100644 --- a/ana/prediction_test.go +++ b/ana/prediction_test.go @@ -32,7 +32,7 @@ func TestPredictionPredict(t *testing.T) { } from := time.Now() these := []time.Time{time.Now().Add(time.Hour * 24 * 365 / 12)} - theseK := these.Format("2006-01") + theseK := these[0].Format("2006-01") _, _ = inc, double cases := map[string]struct { @@ -41,7 +41,7 @@ func TestPredictionPredict(t *testing.T) { want ledger.Register }{ "empty": { - want: ledger.Balances{theseK: {}}, + want: ledger.Register{theseK: {}}, }, }