we did it bois and it is FRAGILE
This commit is contained in:
@@ -23,6 +23,9 @@ func TestRegisterPrediction(t *testing.T) {
|
||||
for _, date := range got.Dates() {
|
||||
for _, name := range got.Names() {
|
||||
t.Logf("%s | %s = %+v", date, name, got[date][name])
|
||||
if ti, _ := dateToTime(date); ti.After(time.Now().Add(time.Hour*24*60)) && got[date][name]["XYZ"] == 0 {
|
||||
t.Error("predicting future contributions lost unmodified currency", got[date][name])
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -90,6 +93,6 @@ func newTestRegister() map[string]Balances {
|
||||
s(lastYear.Add(day * 184)): Balances{"X": Balance{USD: 8}},
|
||||
s(lastYear.Add(day * 214)): Balances{"X": Balance{USD: 10}},
|
||||
s(lastYear.Add(day * 244)): Balances{"X": Balance{USD: 12}},
|
||||
s(lastYear.Add(day * 274)): Balances{"X": Balance{USD: 16}},
|
||||
s(lastYear.Add(day * 274)): Balances{"X": Balance{USD: 16, "XYZ": 1}},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user