From 72be536c026b6a8460a76273d6ae9a54fadb1091 Mon Sep 17 00:00:00 2001 From: bel Date: Fri, 27 Oct 2023 07:39:12 -0600 Subject: [PATCH] one pass --- ana/prediction_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: {}}, }, }