On 11/29/2015 05:05 PM, Markus Mohrhard wrote:
...
...
/home/beppe/lo-github-beppe/basic/qa/cppunit/test_scanner.cxx:582:(anonymous
namespace)::ScannerTest::testNumbers
equality assertion failed
- Expected: 0.3
- Actual : 0.3
test_scanner.cxx:582:Assertion
Test name: (anonymous namespace)::ScannerTest::testNumbers
equality assertion failed
- Expected: 0.3
- Actual : 0.3
Ok. So you need to replace the CPPUNIT_ASSERT_EQUAL with a
CPPUNIT_ASSERT_DOUBLES_EQUAL.
This is also a reminder for anyone else to not use == with doubles
unless you are really, really sure you know what you are doing.
now it works, thanks.
Giuseppe.
--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.