Files
ana-ledger/ledger/group_test.go
Bel LaPointe 40cec44c0b test gorup
2023-10-25 08:17:58 -06:00

14 lines
252 B
Go

package ledger
import "testing"
func TestGroup(t *testing.T) {
if got := GroupDate("^20..")(Delta{Date: "2021-01"}); got.Date != "2021" {
t.Error(got)
}
if got := GroupName("^[^:]*")(Delta{Name: "a:b:c"}); got.Name != "a" {
t.Error(got)
}
}