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
18a2a642
Kaydet (Commit)
18a2a642
authored
Agu 26, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unit test that parsing range fragments should fail
Change-Id: Iff5ef2a5b2315b19cf8f0e84a08c776c3c97e0ae
üst
ed6209f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
ucalc_formula.cxx
sc/qa/unit/ucalc_formula.cxx
+33
-0
No files found.
sc/qa/unit/ucalc_formula.cxx
Dosyayı görüntüle @
18a2a642
...
@@ -321,6 +321,39 @@ void Test::testFormulaParseReference()
...
@@ -321,6 +321,39 @@ void Test::testFormulaParseReference()
CPPUNIT_ASSERT_MESSAGE
(
"This is not an external address."
,
!
aExtInfo
.
mbExternal
);
CPPUNIT_ASSERT_MESSAGE
(
"This is not an external address."
,
!
aExtInfo
.
mbExternal
);
ScRange
aRange
;
ScRange
aRange
;
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
":B"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Should fail to parse."
,
(
nRes
&
SCA_VALID
)
==
0
);
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
"B:"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Should fail to parse."
,
(
nRes
&
SCA_VALID
)
==
0
);
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
":B2"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Should fail to parse."
,
(
nRes
&
SCA_VALID
)
==
0
);
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
"B2:"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Should fail to parse."
,
(
nRes
&
SCA_VALID
)
==
0
);
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
":2"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Should fail to parse."
,
(
nRes
&
SCA_VALID
)
==
0
);
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
"2:"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Should fail to parse."
,
(
nRes
&
SCA_VALID
)
==
0
);
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
":2B"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Should fail to parse."
,
(
nRes
&
SCA_VALID
)
==
0
);
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
"2B:"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Should fail to parse."
,
(
nRes
&
SCA_VALID
)
==
0
);
aRange
.
aStart
.
SetTab
(
0
);
aRange
.
aStart
.
SetTab
(
0
);
nRes
=
aRange
.
Parse
(
"B:B"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
nRes
=
aRange
.
Parse
(
"B:B"
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to parse."
,
(
nRes
&
SCA_VALID
)
!=
0
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to parse."
,
(
nRes
&
SCA_VALID
)
!=
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