rename based on plans

This commit is contained in:
Bel LaPointe
2023-10-26 10:25:38 -06:00
parent c2ccb738bc
commit aa9b795abd
6 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package ana
import (
"testing"
"time"
)
func TestInterest(t *testing.T) {
input := newTestRegister()
got, err := RegisterWithCompoundingInterestPrediction(input, time.Hour*24*365, "X", .04)
if err != nil {
t.Fatal(err)
}
t.Logf("%+v", got)
if len(got) <= len(input) {
t.Error(len(got))
}
for _, date := range got.Dates() {
for name, balance := range got[date] {
t.Logf("%s | %s %s", date, name, balance.Debug())
}
}
}