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
782c116b
Kaydet (Commit)
782c116b
authored
Haz 09, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more tests for the implemented cases, tdf#90001
Change-Id: Iec22ad67c9deaada827ba8eac47581e08f934353
üst
20e4ccc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
ucalc_formula.cxx
sc/qa/unit/ucalc_formula.cxx
+29
-0
No files found.
sc/qa/unit/ucalc_formula.cxx
Dosyayı görüntüle @
782c116b
...
...
@@ -1616,6 +1616,35 @@ void Test::testFormulaRefUpdateSheetsDelete()
m_pDoc
->
InsertTab
(
2
,
"Sheet3"
);
m_pDoc
->
InsertTab
(
3
,
"Sheet4"
);
m_pDoc
->
SetString
(
ScAddress
(
4
,
1
,
0
),
"=SUM(Sheet2.A4:Sheet4.A4)"
);
m_pDoc
->
SetString
(
ScAddress
(
4
,
2
,
0
),
"=SUM($Sheet2.A4:$Sheet4.A4)"
);
m_pDoc
->
DeleteTab
(
1
);
if
(
!
checkFormula
(
*
m_pDoc
,
ScAddress
(
4
,
1
,
0
),
"SUM(Sheet3.A4:Sheet4.A4)"
))
CPPUNIT_FAIL
(
"Wrong Formula"
);
if
(
!
checkFormula
(
*
m_pDoc
,
ScAddress
(
4
,
2
,
0
),
"SUM($Sheet3.A4:$Sheet4.A4)"
))
CPPUNIT_FAIL
(
"Wrong Formula"
);
m_pDoc
->
InsertTab
(
1
,
"Sheet2"
);
m_pDoc
->
SetString
(
ScAddress
(
5
,
1
,
3
),
"=SUM(Sheet1.A5:Sheet3.A5)"
);
m_pDoc
->
SetString
(
ScAddress
(
5
,
2
,
3
),
"=SUM($Sheet1.A5:$Sheet3.A5)"
);
m_pDoc
->
DeleteTab
(
2
);
if
(
!
checkFormula
(
*
m_pDoc
,
ScAddress
(
5
,
1
,
2
),
"SUM(Sheet1.A5:Sheet2.A5)"
))
CPPUNIT_FAIL
(
"Wrong Formula"
);
if
(
!
checkFormula
(
*
m_pDoc
,
ScAddress
(
5
,
2
,
2
),
"SUM($Sheet1.A5:$Sheet2.A5)"
))
CPPUNIT_FAIL
(
"Wrong Formula"
);
m_pDoc
->
InsertTab
(
2
,
"Sheet3"
);
m_pDoc
->
SetString
(
ScAddress
(
6
,
1
,
3
),
"=SUM(Sheet1.A6:Sheet3.A6)"
);
m_pDoc
->
SetString
(
ScAddress
(
6
,
2
,
3
),
"=SUM($Sheet1.A6:$Sheet3.A6)"
);
m_pDoc
->
DeleteTabs
(
0
,
3
);
if
(
!
checkFormula
(
*
m_pDoc
,
ScAddress
(
6
,
1
,
0
),
"SUM(#REF!.A6:#REF!.A6)"
))
CPPUNIT_FAIL
(
"Wrong Formula"
);
if
(
!
checkFormula
(
*
m_pDoc
,
ScAddress
(
6
,
2
,
0
),
"SUM($#REF!.A6:$#REF!.A6)"
))
CPPUNIT_FAIL
(
"Wrong Formula"
);
m_pDoc
->
InsertTab
(
0
,
"Sheet1"
);
m_pDoc
->
InsertTab
(
1
,
"Sheet2"
);
m_pDoc
->
InsertTab
(
2
,
"Sheet3"
);
m_pDoc
->
SetString
(
ScAddress
(
1
,
1
,
1
),
"=SUM(Sheet1.A2:Sheet3.A2"
);
m_pDoc
->
SetString
(
ScAddress
(
2
,
1
,
1
),
"=SUM(Sheet1.A1:Sheet2.A1"
);
m_pDoc
->
SetString
(
ScAddress
(
3
,
1
,
1
),
"=SUM(Sheet2.A3:Sheet4.A3"
);
...
...
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