mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[auto-clear] Fix test: Add xaccAccountBeginEdit / xaccAccountCommitEdit
This commit is contained in:
parent
2faecb2074
commit
5cd777b673
@ -90,6 +90,7 @@ TEST(AutoClear, AutoClearAll) {
|
||||
Account *account = xaccMallocAccount(book);
|
||||
xaccAccountSetName(account, "Test Account");
|
||||
|
||||
xaccAccountBeginEdit(account);
|
||||
for (auto &d : splitData) {
|
||||
Split *split = xaccMallocSplit(book);
|
||||
xaccSplitSetMemo(split, d.memo);
|
||||
@ -99,7 +100,7 @@ TEST(AutoClear, AutoClearAll) {
|
||||
|
||||
gnc_account_insert_split(account, split);
|
||||
}
|
||||
xaccAccountRecomputeBalance(account);
|
||||
xaccAccountCommitEdit(account);
|
||||
|
||||
for (auto &t : testCases) {
|
||||
gnc_numeric amount_to_clear = gnc_numeric_create(t.amount, DENOM);
|
||||
|
Loading…
Reference in New Issue
Block a user