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
c4987cd7
Kaydet (Commit)
c4987cd7
authored
Şub 08, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#74512: Add test for this.
Change-Id: I472a91375c6408761d9c300b3575cfe101649fca
üst
c96d1ddf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
ucalc_formula.cxx
sc/qa/unit/ucalc_formula.cxx
+20
-0
No files found.
sc/qa/unit/ucalc_formula.cxx
Dosyayı görüntüle @
c4987cd7
...
@@ -217,6 +217,26 @@ void Test::testFormulaParseReference()
...
@@ -217,6 +217,26 @@ void Test::testFormulaParseReference()
m_pDoc
->
GetName
(
4
,
aTabName
);
m_pDoc
->
GetName
(
4
,
aTabName
);
CPPUNIT_ASSERT_EQUAL
(
aTab4
,
aTabName
);
CPPUNIT_ASSERT_EQUAL
(
aTab4
,
aTabName
);
// Make sure the formula input and output match.
{
const
char
*
aChecks
[]
=
{
"'90''s Music'.B12"
,
"'90''s and 70''s'.$AB$100"
,
"'All Others'.Z$100"
,
"NoQuote.$C111"
};
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aChecks
);
++
i
)
{
// Use the 'Dummy' sheet for this.
OUString
aInput
(
"="
);
aInput
+=
OUString
::
createFromAscii
(
aChecks
[
i
]);
m_pDoc
->
SetString
(
ScAddress
(
0
,
0
,
0
),
aInput
);
if
(
!
checkFormula
(
*
m_pDoc
,
ScAddress
(
0
,
0
,
0
),
aChecks
[
i
]))
CPPUNIT_FAIL
(
"Wrong formula"
);
}
}
ScAddress
aPos
;
ScAddress
aPos
;
ScAddress
::
ExternalInfo
aExtInfo
;
ScAddress
::
ExternalInfo
aExtInfo
;
sal_uInt16
nRes
=
aPos
.
Parse
(
"'90''s Music'.D10"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
,
&
aExtInfo
);
sal_uInt16
nRes
=
aPos
.
Parse
(
"'90''s Music'.D10"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
,
&
aExtInfo
);
...
...
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