dates can be strings i dont care
This commit is contained in:
@@ -2,14 +2,10 @@ package ledger
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestDelta(t *testing.T) {
|
||||
d, err := time.Parse("2006-01-02", "2099-08-07")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
d := "2099-08-07"
|
||||
delta := newDelta(d, "", "name", 34.56, "$")
|
||||
|
||||
if delta.Date != d {
|
||||
@@ -26,7 +22,7 @@ func TestDelta(t *testing.T) {
|
||||
}
|
||||
t.Log(delta)
|
||||
|
||||
d2, _ := time.Parse("2006-01-02", "2099-09-08")
|
||||
d2 := "2099-09-08"
|
||||
delta2 := newDelta(d2, "", "name", 11.11, "$")
|
||||
|
||||
combined := delta.Plus(delta2)
|
||||
|
||||
Reference in New Issue
Block a user