rename based on plans
This commit is contained in:
26
ana/legacy_interest_test.go
Normal file
26
ana/legacy_interest_test.go
Normal 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())
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user