Error in languagetag unittest
Stephan Bergmann
sbergman at redhat.com
Wed Oct 16 14:46:55 CEST 2013
On 10/16/2013 02:05 PM, Marcos Souza wrote:
> /languagetag.cxx:674: LanguageTag::registerOnTheFly: not cross-inserted
> 0x51 for 'dz' have 'bo'
> canvasbitmaptest.cxx:183:Assertion
> Test name: (anonymous namespace)::CanvasBitmapTest::runTest
> assertion failed
> - Expression: pRGBStart[5].Red ==
> vcl::unotools::toDoubleColor(aCol.GetRed()) &
> & pRGBStart[5].Green == vcl::unotools::toDoubleColor(aCol.GetGreen()) &&
> pRGBSt
> art[5].Blue == vcl::unotools::toDoubleColor(aCol.GetBlue())
> - Sixth pixel is not green
I just pushed
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=ca216af0fae6fa178c8d1debaabdeb2246bc8e63>
"Improve test" which should give you a better idea of why that test
fails. Seeing that the test compares double values, maybe it is just a
rounding issue (and using CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE would be
the solution).
Stephan
More information about the LibreOffice
mailing list