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
01e63352
Kaydet (Commit)
01e63352
authored
Eyl 18, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
and another test for ScRangeList::DeleteArea
Change-Id: I1fa81b32f9ffc70769876becbcf213796cab405b
üst
5f0b2c26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
rangelst_test.cxx
sc/qa/unit/rangelst_test.cxx
+15
-0
No files found.
sc/qa/unit/rangelst_test.cxx
Dosyayı görüntüle @
01e63352
...
...
@@ -88,6 +88,21 @@ void Test::testDeleteArea_4Ranges()
void
Test
::
testDeleteArea_3Ranges
()
{
ScRangeList
aList
(
ScRange
(
1
,
1
,
0
,
6
,
6
,
0
));
aList
.
DeleteArea
(
3
,
3
,
0
,
8
,
4
,
0
);
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
size_t
>
(
3
),
aList
.
size
());
for
(
SCCOL
nCol
=
1
;
nCol
<=
6
;
++
nCol
)
{
for
(
SCROW
nRow
=
1
;
nRow
<=
6
;
++
nRow
)
{
if
((
nRow
==
3
||
nRow
==
4
)
&&
(
nCol
>=
3
))
CPPUNIT_ASSERT
(
!
aList
.
In
(
ScRange
(
nCol
,
nRow
,
0
)));
else
CPPUNIT_ASSERT
(
aList
.
In
(
ScRange
(
nCol
,
nRow
,
0
)));
}
}
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
size_t
>
(
28
),
aList
.
GetCellCount
());
}
void
Test
::
testDeleteArea_2Ranges
()
...
...
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