Kaydet (Commit) a903cac8 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix assert

Change-Id: I55627efdf50bea4c1371b6c54df67cc71d5fce2f
üst 7cfc80cb
...@@ -3870,6 +3870,9 @@ void ScOpenclTest::testMathFormulaMod() ...@@ -3870,6 +3870,9 @@ void ScOpenclTest::testMathFormulaMod()
{ {
double fLibre = pDoc->GetValue(ScAddress(2,i,0)); double fLibre = pDoc->GetValue(ScAddress(2,i,0));
double fExcel = pDocRes->GetValue(ScAddress(2,i,0)); double fExcel = pDocRes->GetValue(ScAddress(2,i,0));
if(fExcel == 0.0f)
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, 1e-10);
else
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel)); CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
} }
xDocSh->DoClose(); xDocSh->DoClose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment