for (SCROW i = 0; i <= 15; ++i)
{
pDoc->GetValue(ScAddress(0,i,0)); // LO
pDocRes->GetValue(ScAddress(0,i,0)); // Excel //because the random numbers will always change,so give the test "true"
CPPUNIT_ASSERT(true);
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 0; i <= 16; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 0; i <= 11; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ 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));
} for (SCROW i = 1; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 0; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 0; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
fLibre = pDoc->GetValue(ScAddress(4,i,0));
fExcel = pDocRes->GetValue(ScAddress(4,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
fLibre = pDoc->GetValue(ScAddress(4,i,0));
fExcel = pDocRes->GetValue(ScAddress(4,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(4,i,0)); double fExcel = pDocRes->GetValue(ScAddress(4,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
fLibre = pDoc->GetValue(ScAddress(5,i,0));
fExcel = pDocRes->GetValue(ScAddress(5,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(6,i,0)); double fExcel = pDocRes->GetValue(ScAddress(6,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
fLibre = pDoc->GetValue(ScAddress(7,i,0));
fExcel = pDocRes->GetValue(ScAddress(7,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(5,i,0)); double fExcel = pDocRes->GetValue(ScAddress(5,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
} for (SCROW i = 40; i <= 50; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(5,i,0)); double fExcel = pDocRes->GetValue(ScAddress(5,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 10; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(4,i,0)); double fExcel = pDocRes->GetValue(ScAddress(4,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(4,i,0)); double fExcel = pDocRes->GetValue(ScAddress(4,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(4,i,0)); double fExcel = pDocRes->GetValue(ScAddress(4,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(5,i,0)); double fExcel = pDocRes->GetValue(ScAddress(5,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
CPPUNIT_TEST_FIXTURE(ScOpenCLTest2, testStatisticalFormulaVarPA)
{
initTestEnv(u"xls/opencl/statistical/VarPA.xls");
ScDocument* pDoc = getScDoc();
ScDocument* pDocRes = getScDoc2();
pDoc->CalcAll(); // Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
for (SCROW i = 0; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(6, i, 0)); double fExcel = pDocRes->GetValue(ScAddress(6, i, 0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel,fLibre,fabs(0.00000000001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 2; i <= 12; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(4,i,1)); double fExcel = pDocRes->GetValue(ScAddress(4,i,1));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0)); //CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0)); //CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0)); //CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0)); //CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0)); //CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 32; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(9,i,0)); double fExcel = pDocRes->GetValue(ScAddress(10,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.00000000001));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(3,i,0)); double fExcel = pDocRes->GetValue(ScAddress(3,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 0; i <= 9; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ 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));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 19; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
// Check the results of formula cells in the shared formula range. for (SCROW i = 1; i <= 20; ++i)
{ double fLibre = pDoc->GetValue(ScAddress(1,i,0)); double fExcel = pDocRes->GetValue(ScAddress(1,i,0));
CPPUNIT_ASSERT_DOUBLES_EQUAL(fExcel, fLibre, fabs(0.0001*fExcel));
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.