register and balances accept bpi

This commit is contained in:
Bel LaPointe
2023-10-25 14:02:44 -06:00
parent f2ec1233d7
commit 6b666c7220
5 changed files with 54 additions and 26 deletions

View File

@@ -21,21 +21,4 @@ func TestDelta(t *testing.T) {
t.Error(delta.Currency)
}
t.Log(delta)
d2 := "2099-09-08"
delta2 := newDelta(d2, "", "name", 11.11, "$", false)
combined := delta.Plus(delta2)
if combined.Date != d2 {
t.Error(combined.Date)
}
if combined.Name != "name" {
t.Error(combined.Name)
}
if combined.Value != 45.67 {
t.Error(combined.Value)
}
if combined.Currency != USD {
t.Error(combined.Currency)
}
}