mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use a more appropriate comparison for doubles.
This commit is contained in:
parent
8f96882ead
commit
26fa2acfd5
@ -293,7 +293,7 @@ TEST(gncnumeric_operators, double_conversion)
|
|||||||
{
|
{
|
||||||
GncNumeric a(123456789, 9876);
|
GncNumeric a(123456789, 9876);
|
||||||
double b = static_cast<decltype(b)>(a);
|
double b = static_cast<decltype(b)>(a);
|
||||||
EXPECT_EQ(12500.687424058324, b);
|
EXPECT_DOUBLE_EQ(12500.687424058324, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(gncnumeric_operators, test_addition)
|
TEST(gncnumeric_operators, test_addition)
|
||||||
|
Loading…
Reference in New Issue
Block a user