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
255bec20
Kaydet (Commit)
255bec20
authored
Ock 24, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
improve tests for cached value import
Change-Id: I8e5f8cb351792b53c89658074e41dff3a3c4d9db
üst
de798580
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
21 deletions
+37
-21
cachedValue.csv
sc/qa/unit/data/contentCSV/cachedValue.csv
+2
-0
cachedValue.ods
sc/qa/unit/data/ods/cachedValue.ods
+0
-0
csv_handler.hxx
sc/qa/unit/helper/csv_handler.hxx
+2
-2
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+33
-19
No files found.
sc/qa/unit/data/contentCSV/cachedValue.csv
0 → 100644
Dosyayı görüntüle @
255bec20
1.00,200.00%,$3.00,1/3/00,00:00,6.00E+000,7 1/5,TRUE,9,1000%,01-10
1,200.00%,$3.00,01/03/00,120:00:00,6.00E+000,7 1/5,TRUE,9,1000.00%,01/10/00
sc/qa/unit/data/ods/cachedValue.ods
0 → 100644
Dosyayı görüntüle @
255bec20
File added
sc/qa/unit/helper/csv_handler.hxx
Dosyayı görüntüle @
255bec20
...
...
@@ -141,7 +141,7 @@ public:
std
::
cout
<<
"result: "
<<
(
int
)(
aCSVString
==
aString
)
<<
std
::
endl
;
#endif //DEBUG_CSV_HANDLER
CPPUNIT_ASSERT_
MESSAGE
(
createErrorMessage
(
mnCol
,
mnRow
,
mnTab
,
aCSVString
,
aString
).
getStr
(),
aString
==
aCSVString
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
createErrorMessage
(
mnCol
,
mnRow
,
mnTab
,
aCSVString
,
aString
).
getStr
(),
aString
,
aCSVString
);
}
else
{
...
...
@@ -169,7 +169,7 @@ public:
std
::
cout
<<
"result: "
<<
(
int
)(
aCSVString
==
aString
)
<<
std
::
endl
;
#endif //DEBUG_CSV_HANDLER
CPPUNIT_ASSERT_
MESSAGE
(
createErrorMessage
(
mnCol
,
mnRow
,
mnTab
,
aCSVString
,
aString
).
getStr
(),
aString
==
aCSVString
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
createErrorMessage
(
mnCol
,
mnRow
,
mnTab
,
aCSVString
,
aString
).
getStr
(),
aString
,
aCSVString
);
}
else
{
...
...
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
255bec20
...
...
@@ -188,8 +188,8 @@ public:
CPPUNIT_TEST
(
testHardRecalcODS
);
CPPUNIT_TEST
(
testFunctionsODS
);
CPPUNIT_TEST
(
testCachedFormulaResultsODS
);
//
CPPUNIT_TEST(testVolatileFunctionsODS);
//
CPPUNIT_TEST(testCachedMatrixFormulaResultsODS);
CPPUNIT_TEST
(
testVolatileFunctionsODS
);
CPPUNIT_TEST
(
testCachedMatrixFormulaResultsODS
);
CPPUNIT_TEST
(
testDatabaseRangesODS
);
CPPUNIT_TEST
(
testDatabaseRangesXLS
);
CPPUNIT_TEST
(
testDatabaseRangesXLSX
);
...
...
@@ -428,26 +428,40 @@ void ScFiltersTest::testFunctionsODS()
void
ScFiltersTest
::
testCachedFormulaResultsODS
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"functions."
,
ODS
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load functions.*"
,
xDocSh
.
Is
());
{
ScDocShellRef
xDocSh
=
loadDoc
(
"functions."
,
ODS
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load functions.*"
,
xDocSh
.
Is
());
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
rtl
::
OUString
aCSVFileName
;
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
rtl
::
OUString
aCSVFileName
;
//test cached formula results of logical functions
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"logical-functions."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
0
);
//test cached formula results of spreadsheet functions
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"spreadsheet-functions."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
1
);
//test cached formula results of mathematical functions
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"mathematical-functions."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
2
,
PureString
);
//test cached formula results of informations functions
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"information-functions."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
3
);
//test cached formula results of logical functions
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"logical-functions."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
0
);
//test cached formula results of spreadsheet functions
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"spreadsheet-functions."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
1
);
//test cached formula results of mathematical functions
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"mathematical-functions."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
2
,
PureString
);
//test cached formula results of informations functions
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"information-functions."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
3
);
xDocSh
->
DoClose
();
xDocSh
->
DoClose
();
}
{
ScDocShellRef
xDocSh
=
loadDoc
(
"cachedValue."
,
ODS
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load cachedValue.*"
,
xDocSh
.
Is
());
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
rtl
::
OUString
aCSVFileName
;
createCSVPath
(
"cachedValue."
,
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
0
);
xDocSh
->
DoClose
();
}
}
void
ScFiltersTest
::
testVolatileFunctionsODS
()
...
...
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