mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add another test to test-numeric to show a division overflow.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10099 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
d5668d57df
commit
27f6709d33
@ -543,6 +543,15 @@ check_mult_div (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a = gnc_numeric_create(782592055622866ULL,89025);
|
||||||
|
b = gnc_numeric_create(2222554708930978ULL,85568);
|
||||||
|
/* XXX: I'm not 100% sure that this is the value we should get, but
|
||||||
|
* we probably should NOT get ERROR -2 / 0 */
|
||||||
|
check_binary_op (gnc_numeric_create(2578135489ULL, 7617691200ULL),
|
||||||
|
gnc_numeric_div(a, b, GNC_DENOM_AUTO,
|
||||||
|
GNC_DENOM_SIGFIGS(6) | GNC_RND_ROUND),
|
||||||
|
a, b, "expected %s got %s = %s / %s for div round");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ======================================================= */
|
/* ======================================================= */
|
||||||
|
Loading…
Reference in New Issue
Block a user