Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
77639fa8
Kaydet (Commit)
77639fa8
authored
Eki 23, 2013
tarafından
I-Jui (Ray) Sung
Kaydeden (comit)
Kohei Yoshida
Eki 29, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Testcases for nested operators inside SUMPRODUCT
Change-Id: Ied20d5f3f1098d663444db337875d9e2728d4cdd
üst
1ac9a525
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
nested.ods
sc/qa/unit/data/ods/OpenCLTests/Compiler/nested.ods
+0
-0
opencl-test.cxx
sc/qa/unit/opencl-test.cxx
+27
-0
No files found.
sc/qa/unit/data/ods/OpenCLTests/Compiler/nested.ods
0 → 100644
Dosyayı görüntüle @
77639fa8
File added
sc/qa/unit/opencl-test.cxx
Dosyayı görüntüle @
77639fa8
...
...
@@ -65,6 +65,8 @@ public:
void
testFinacialIRRFormula
();
void
testFinacialMIRRFormula
();
void
testFinacialRateFormula
();
void
testCompilerNested
();
CPPUNIT_TEST_SUITE
(
ScOpenclTest
);
CPPUNIT_TEST
(
testSharedFormulaXLS
);
CPPUNIT_TEST
(
testSharedFormulaXLSGroundWater
);
...
...
@@ -77,6 +79,7 @@ public:
CPPUNIT_TEST
(
testFinacialIRRFormula
);
CPPUNIT_TEST
(
testFinacialMIRRFormula
);
CPPUNIT_TEST
(
testFinacialRateFormula
);
CPPUNIT_TEST
(
testCompilerNested
);
CPPUNIT_TEST_SUITE_END
();
private
:
...
...
@@ -115,6 +118,30 @@ void ScOpenclTest::enableOpenCL(ScDocShell* pShell)
pShell
->
SetFormulaOptions
(
rOpt
);
}
void
ScOpenclTest
::
testCompilerNested
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"OpenCLTests/Compiler/nested."
,
ODS
);
enableOpenCL
(
xDocSh
);
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
CPPUNIT_ASSERT
(
pDoc
);
xDocSh
->
DoHardRecalc
(
true
);
ScDocShellRef
xDocShRes
=
loadDoc
(
"OpenCLTests/Compiler/nested."
,
ODS
);
ScDocument
*
pDocRes
=
xDocShRes
->
GetDocument
();
CPPUNIT_ASSERT
(
pDocRes
);
// Check the results of formula cells in the shared formula range.
for
(
SCROW
i
=
1
;
i
<
5
;
++
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
));
}
xDocSh
->
DoClose
();
xDocShRes
->
DoClose
();
}
void
ScOpenclTest
::
testSharedFormulaXLSStockHistory
()
{
#if 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment