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

fix assert

Change-Id: I55627efdf50bea4c1371b6c54df67cc71d5fce2f
üst 7cfc80cb
......@@ -3870,7 +3870,10 @@ void ScOpenclTest::testMathFormulaMod()
{
double fLibre = pDoc->GetValue(ScAddress(2,i,0));
double fExcel = pDocRes->GetValue(ScAddress(2,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
if(fExcel == 0.0f)
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, 1e-10);
else
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
xDocSh->DoClose();
xDocShRes->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