chore: initial commit of HouseholdBudgetBook (backend, frontend, desktop)
This commit is contained in:
commit
4a5db3f1f9
167 files changed
+21732
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"household-book/model"
|
||||
)
|
||||
|
||||
func TestSourceKeyDoesNotDependOnWholeFile(t *testing.T) {
|
||||
a := model.ImportTransactionsRequest{Content: []byte("first export"), SourceKind: "wechat", BankName: "微信", CardType: "wechat"}
|
||||
b := model.ImportTransactionsRequest{Content: []byte("overlapping export"), SourceKind: "wechat", BankName: "微信", CardType: "wechat"}
|
||||
if sourceKey(a, "stable-trade-id") != sourceKey(b, "stable-trade-id") {
|
||||
t.Fatal("same transaction identity should deduplicate across different files")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user