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
d8178741
Kaydet (Commit)
d8178741
authored
Ock 15, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test case for fdo#59293
Change-Id: I5972a2805d8bc03b84a42fbba4b67923b3b77249
üst
5b7db7ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
matrix3.csv
sc/qa/unit/data/contentCSV/matrix3.csv
+6
-0
matrix.ods
sc/qa/unit/data/ods/matrix.ods
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+11
-3
No files found.
sc/qa/unit/data/contentCSV/matrix3.csv
0 → 100644
Dosyayı görüntüle @
d8178741
1,,1,,
1,
#DIV/0!
1
1
#DIV/0!
sc/qa/unit/data/ods/matrix.ods
Dosyayı görüntüle @
d8178741
No preview for this file type
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
d8178741
...
@@ -475,11 +475,13 @@ void ScFiltersTest::testCachedMatrixFormulaResultsODS()
...
@@ -475,11 +475,13 @@ void ScFiltersTest::testCachedMatrixFormulaResultsODS()
//test matrix
//test matrix
rtl
::
OUString
aCSVFileName
;
rtl
::
OUString
aCSVFileName
;
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"matrix."
))
,
aCSVFileName
);
createCSVPath
(
"matrix."
,
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
0
);
testFile
(
aCSVFileName
,
pDoc
,
0
);
//test matrices with special cases
//test matrices with special cases
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"matrix2."
))
,
aCSVFileName
);
createCSVPath
(
"matrix2."
,
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
1
);
testFile
(
aCSVFileName
,
pDoc
,
1
);
createCSVPath
(
"matrix3."
,
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
2
);
//The above testFile() does not catch the below case.
//The above testFile() does not catch the below case.
//If a matrix formula has a matrix reference cell that is intended to have
//If a matrix formula has a matrix reference cell that is intended to have
//a blank text result, the matrix reference cell is actually saved(export)
//a blank text result, the matrix reference cell is actually saved(export)
...
@@ -487,7 +489,13 @@ void ScFiltersTest::testCachedMatrixFormulaResultsODS()
...
@@ -487,7 +489,13 @@ void ScFiltersTest::testCachedMatrixFormulaResultsODS()
//Import works around this by setting these cells as text cells so that
//Import works around this by setting these cells as text cells so that
//the blank text is used for display instead of the number 0.
//the blank text is used for display instead of the number 0.
//If this is working properly, the following cell should NOT have value data.
//If this is working properly, the following cell should NOT have value data.
//CPPUNIT_ASSERT(!pDoc->GetCell(ScAddress(3,5,1))->HasValueData());
// CPPUNIT_ASSERT(!pDoc->GetCell(ScAddress(3,0,2))->HasValueData());
// fdo#59293 with cached value import error formulas require special
// treatment
pDoc
->
SetString
(
2
,
5
,
2
,
"=ISERROR(A6)"
);
double
nVal
=
pDoc
->
GetValue
(
2
,
5
,
2
);
CPPUNIT_ASSERT_EQUAL
(
1.0
,
nVal
);
xDocSh
->
DoClose
();
xDocSh
->
DoClose
();
}
}
...
...
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