mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[Engine Test] Change gdoubles to gfloats
gnc_numeric_to_double() produces int32_t, which causes random digits at the tail end of int64_t results, causing the comparison tests to fail. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21529 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7f08994242
commit
e39383c9ed
@ -1763,8 +1763,8 @@ static void
|
|||||||
test_xaccAccountGetProjectedMinimumBalance (Fixture *fixture, gconstpointer pData)
|
test_xaccAccountGetProjectedMinimumBalance (Fixture *fixture, gconstpointer pData)
|
||||||
{
|
{
|
||||||
gnc_numeric val, bal = gnc_numeric_zero ();
|
gnc_numeric val, bal = gnc_numeric_zero ();
|
||||||
gdouble dval;
|
gfloat dval;
|
||||||
gdouble dbal = 0.0;
|
gfloat dbal = 0.0;
|
||||||
SetupData *sdata = (SetupData*)pData;
|
SetupData *sdata = (SetupData*)pData;
|
||||||
TxnParms* t_arr;
|
TxnParms* t_arr;
|
||||||
int ind;
|
int ind;
|
||||||
@ -1792,8 +1792,8 @@ static void
|
|||||||
test_xaccAccountGetBalanceAsOfDate (Fixture *fixture, gconstpointer pData)
|
test_xaccAccountGetBalanceAsOfDate (Fixture *fixture, gconstpointer pData)
|
||||||
{
|
{
|
||||||
gnc_numeric val, bal = gnc_numeric_zero ();
|
gnc_numeric val, bal = gnc_numeric_zero ();
|
||||||
gdouble dval;
|
gfloat dval;
|
||||||
gdouble dbal = 0.0;
|
gfloat dbal = 0.0;
|
||||||
SetupData *sdata = (SetupData*)pData;
|
SetupData *sdata = (SetupData*)pData;
|
||||||
TxnParms* t_arr;
|
TxnParms* t_arr;
|
||||||
int ind;
|
int ind;
|
||||||
@ -1819,8 +1819,8 @@ static void
|
|||||||
test_xaccAccountGetPresentBalance (Fixture *fixture, gconstpointer pData)
|
test_xaccAccountGetPresentBalance (Fixture *fixture, gconstpointer pData)
|
||||||
{
|
{
|
||||||
gnc_numeric val, bal = gnc_numeric_zero ();
|
gnc_numeric val, bal = gnc_numeric_zero ();
|
||||||
gdouble dval;
|
gfloat dval;
|
||||||
gdouble dbal = 0.0;
|
gfloat dbal = 0.0;
|
||||||
SetupData *sdata = (SetupData*)pData;
|
SetupData *sdata = (SetupData*)pData;
|
||||||
TxnParms* t_arr;
|
TxnParms* t_arr;
|
||||||
int ind;
|
int ind;
|
||||||
@ -2237,10 +2237,10 @@ test_gnc_account_merge_children (Fixture *fixture, gconstpointer pData)
|
|||||||
gint stocks_desc = gnc_account_n_descendants (stocks);
|
gint stocks_desc = gnc_account_n_descendants (stocks);
|
||||||
gint taxable_desc = gnc_account_n_descendants (taxable);
|
gint taxable_desc = gnc_account_n_descendants (taxable);
|
||||||
gint expense_desc = gnc_account_n_descendants (expense);
|
gint expense_desc = gnc_account_n_descendants (expense);
|
||||||
gdouble stocks_balance = gnc_numeric_to_double (
|
gfloat stocks_balance = gnc_numeric_to_double (
|
||||||
xaccAccountGetBalance (stocks));
|
xaccAccountGetBalance (stocks));
|
||||||
gdouble baz_balance = gnc_numeric_to_double (xaccAccountGetBalance (baz));
|
gfloat baz_balance = gnc_numeric_to_double (xaccAccountGetBalance (baz));
|
||||||
gdouble baz2_balance = gnc_numeric_to_double (xaccAccountGetBalance (baz2));
|
gfloat baz2_balance = gnc_numeric_to_double (xaccAccountGetBalance (baz2));
|
||||||
TestSignal sig1, sig2, sig3, sig4, sig5;
|
TestSignal sig1, sig2, sig3, sig4, sig5;
|
||||||
/* This segment doesn't test because of problems with resetting
|
/* This segment doesn't test because of problems with resetting
|
||||||
* the accounts on the splits. It will have to be rewritten with a
|
* the accounts on the splits. It will have to be rewritten with a
|
||||||
|
Loading…
Reference in New Issue
Block a user