[Libreoffice-commits] cppunit.git: examples/money
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Aug 31 17:51:50 UTC 2020
examples/money/MoneyTest.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 942992e8abbe00aad7d0671671124a046cae2cda
Author: Алексей Тулинов <aleksey.tulinov at gmail.com>
AuthorDate: Mon Aug 31 05:25:10 2020 +0300
Commit: Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Mon Aug 31 19:51:32 2020 +0200
Fixed CPPUNIT_ASSERT_EQUAL() being called on doubles
Change-Id: Ie72531ebdc858a0122886a7a3cfe49185dc0ff76
Reviewed-on: https://gerrit.libreoffice.org/c/cppunit/+/101688
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/examples/money/MoneyTest.cpp b/examples/money/MoneyTest.cpp
index 65870a6..3fc9aaa 100644
--- a/examples/money/MoneyTest.cpp
+++ b/examples/money/MoneyTest.cpp
@@ -32,7 +32,7 @@ MoneyTest::testConstructor()
Money money( longNumber, currencyFF );
// Check
- CPPUNIT_ASSERT_EQUAL( longNumber, money.getAmount() );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( longNumber, money.getAmount(), 0.0001 );
CPPUNIT_ASSERT_EQUAL( currencyFF, money.getCurrency() );
}
More information about the Libreoffice-commits
mailing list