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
46717d37
Kaydet (Commit)
46717d37
authored
Eki 04, 2015
tarafından
Łukasz Hryniuk
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Performance test for TTEST
Change-Id: I05e34b24ed074a9f33d2a860f9042c85d7b556bc
üst
56d28266
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
scperfobj.cxx
sc/qa/perf/scperfobj.cxx
+26
-0
scMathFunctions2.ods
sc/qa/perf/testdocuments/scMathFunctions2.ods
+0
-0
No files found.
sc/qa/perf/scperfobj.cxx
Dosyayı görüntüle @
46717d37
...
...
@@ -62,6 +62,7 @@ public:
CPPUNIT_TEST
(
testFTest
);
CPPUNIT_TEST
(
testChiTest
);
CPPUNIT_TEST
(
testSumX2PY2Test
);
CPPUNIT_TEST
(
testTTest
);
CPPUNIT_TEST_SUITE_END
();
private
:
...
...
@@ -77,6 +78,7 @@ private:
void
testFTest
();
void
testChiTest
();
void
testSumX2PY2Test
();
void
testTTest
();
};
...
...
@@ -367,6 +369,30 @@ void ScPerfObj::testSumX2PY2Test()
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"Wrong SumX2PY2 result"
,
574539.0
,
xCell
->
getValue
());
}
void
ScPerfObj
::
testTTest
()
{
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
(
init
(
"scMathFunctions2.ods"
),
UNO_QUERY_THROW
);
CPPUNIT_ASSERT_MESSAGE
(
"Problem in document loading"
,
xDoc
.
is
());
uno
::
Reference
<
sheet
::
XCalculatable
>
xCalculatable
(
xDoc
,
UNO_QUERY_THROW
);
// get getSheets
uno
::
Reference
<
sheet
::
XSpreadsheets
>
xSheets
(
xDoc
->
getSheets
(),
UNO_QUERY_THROW
);
uno
::
Any
rSheet
=
xSheets
->
getByName
(
OUString
::
createFromAscii
(
"TTestSheet"
));
// query for the XSpreadsheet interface
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
rSheet
,
UNO_QUERY
);
uno
::
Reference
<
table
::
XCell
>
xCell
=
xSheet
->
getCellByPosition
(
0
,
0
);
callgrindStart
();
xCell
->
setFormula
(
OUString
::
createFromAscii
(
"=T.TEST(B1:CV100;CW1:GQ100;2;1)"
));
xCalculatable
->
calculate
();
callgrindDump
(
"sc:ttest"
);
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"Wrong TTest result"
,
0.0
,
xCell
->
getValue
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
ScPerfObj
);
}
...
...
sc/qa/perf/testdocuments/scMathFunctions2.ods
Dosyayı görüntüle @
46717d37
No preview for this file type
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