diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-26 09:40:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-26 09:42:26 +0100 |
commit | 8140309d636d4a870875f2dd75ed3dfff2c0fbaf (patch) | |
tree | 9dfe8c71df0e354c431dcddc648af1dc3dc6d129 /sc/qa | |
parent | a3aa6458f616fc0c79350498962c73a4886593ef (diff) |
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
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc_formula.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index a8e9100c3835..3c23d47f774d 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}; |