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
9d28748d
Kaydet (Commit)
9d28748d
authored
Eki 28, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unit test for tdf#95395
Change-Id: I8bbd70f6740019bebc23d20259f923b8f87d4329
üst
b5cd11b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
ucalc_formula.cxx
sc/qa/unit/ucalc_formula.cxx
+23
-0
No files found.
sc/qa/unit/ucalc_formula.cxx
Dosyayı görüntüle @
9d28748d
...
...
@@ -4188,6 +4188,29 @@ void Test::testFuncVLOOKUP()
m_pDoc
->
SetString
(
ScAddress
(
2
,
0
,
0
),
"=VLOOKUP(
\"
C
\"
;A1:A16;1)"
);
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"C"
),
m_pDoc
->
GetString
(
ScAddress
(
2
,
0
,
0
)));
// A21:E24, test position dependent implicit intersection as argument to a
// scalar value parameter in a function that has a ReferenceOrForceArray
// type parameter somewhere else and formula is not in array mode,
// VLOOKUP(Value;ReferenceOrForceArray;...)
const
char
*
aData2
[][
5
]
=
{
{
"1"
,
"one"
,
"3"
,
"=VLOOKUP(C21:C24;A21:B24;2;0)"
,
"three"
},
{
"2"
,
"two"
,
"1"
,
"=VLOOKUP(C21:C24;A21:B24;2;0)"
,
"one"
},
{
"3"
,
"three"
,
"4"
,
"=VLOOKUP(C21:C24;A21:B24;2;0)"
,
"four"
},
{
"4"
,
"four"
,
"2"
,
"=VLOOKUP(C21:C24;A21:B24;2;0)"
,
"two"
}
};
ScAddress
aPos2
(
0
,
20
,
0
);
ScRange
aRange2
=
insertRangeData
(
m_pDoc
,
aPos2
,
aData2
,
SAL_N_ELEMENTS
(
aData2
));
CPPUNIT_ASSERT
(
aRange2
.
aStart
==
aPos2
);
aPos2
.
SetCol
(
3
);
// column D formula results
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aData2
);
++
i
)
{
CPPUNIT_ASSERT_EQUAL
(
OUString
::
createFromAscii
(
aData2
[
i
][
4
]),
m_pDoc
->
GetString
(
aPos2
));
aPos2
.
IncRow
();
}
m_pDoc
->
DeleteTab
(
0
);
}
...
...
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