Cppunit test failing in basic/qa/cppunit
Giuseppe Castagno
giuseppe.castagno at acca-esse.eu
Sun Nov 29 09:20:26 PST 2015
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
More information about the LibreOffice
mailing list