mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
whitespace fixes (convert tabs to spaces)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9971 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
static void
|
||||
transaction_set_splits_to_accounts(Transaction *tr, Account *a1, Account *a2)
|
||||
{
|
||||
|
||||
Split *split;
|
||||
|
||||
split = xaccTransGetSplit(tr, 0);
|
||||
@@ -72,11 +71,13 @@ run_test (void)
|
||||
failure("xaccTransClone failed.");
|
||||
|
||||
xaccTransReverse(new_trans);
|
||||
for (i = 0; i < 2; i++) {
|
||||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
old = xaccSplitGetAmount(xaccTransGetSplit(transaction, i));
|
||||
new = xaccSplitGetAmount(xaccTransGetSplit(new_trans, i));
|
||||
result = gnc_numeric_add(old, new, GNC_DENOM_AUTO, GNC_DENOM_FIXED);
|
||||
if (gnc_numeric_eq(old, gnc_numeric_neg(new))) {
|
||||
if (gnc_numeric_eq(old, gnc_numeric_neg(new)))
|
||||
{
|
||||
msg = g_strdup_printf("Amount of split %d wrong after reversal", i);
|
||||
failure(msg);
|
||||
}
|
||||
@@ -84,7 +85,8 @@ run_test (void)
|
||||
old = xaccSplitGetValue(xaccTransGetSplit(transaction, i));
|
||||
new = xaccSplitGetValue(xaccTransGetSplit(new_trans, i));
|
||||
result = gnc_numeric_add(old, new, GNC_DENOM_AUTO, GNC_DENOM_FIXED);
|
||||
if (gnc_numeric_eq(old, gnc_numeric_neg(new))) {
|
||||
if (gnc_numeric_eq(old, gnc_numeric_neg(new)))
|
||||
{
|
||||
msg = g_strdup_printf("Value of split %d wrong after reversal", i);
|
||||
failure(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user