sc/qa/unit/ucalc_formula.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8140309d636d4a870875f2dd75ed3dfff2c0fbaf Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Oct 26 09:40:37 2015 +0100 Use CPPUNIT_ASSERT_DOUBLES_EQUAL ...to avoid failure on Linux-rpm_deb-x86@71-TDF-dbg: ucalc_formula.cxx:6600:Assertion Test name: Test::testFuncMDETERM equality assertion failed - Expected: 0 - Actual : 6.33716169817777e-17 - Calculation of MDETERM incorrect for singular integer matrix A delta of 10e-4 appears to be a popular choice in this source file already. Change-Id: I24dc6bcab114a1cb2183f2b583be7ba9a9cb1fcd diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index a8e9100..3c23d47 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -6596,8 +6596,8 @@ void Test::testFuncMDETERM() aFormulaBuffer[12] = aColCodes[nSize-1]; aFormulaBuffer[13] = static_cast<sal_Unicode>( '0' + nSize ); m_pDoc->SetString(aPos, aFormulaBuffer.toString()); - CPPUNIT_ASSERT_EQUAL_MESSAGE("Calculation of MDETERM incorrect for singular integer matrix", - 0.0, m_pDoc->GetValue(aPos)); + CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("Calculation of MDETERM incorrect for singular integer matrix", + 0.0, m_pDoc->GetValue(aPos), 10e-4); } int aVals[] = {23, 31, 13, 12, 34, 64, 34, 31, 98, 32, 33, 63, 45, 54, 65, 76}; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits