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
73463243
Kaydet (Commit)
73463243
authored
Nis 28, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:cppunitassertequals: sw
Change-Id: I9e2dcf0e2f5ed9c542b9807683878c654edc21fb
üst
afe5ffae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
Test-BigPtrArray.cxx
sw/qa/core/Test-BigPtrArray.cxx
+10
-10
No files found.
sw/qa/core/Test-BigPtrArray.cxx
Dosyayı görüntüle @
73463243
...
@@ -128,10 +128,10 @@ public:
...
@@ -128,10 +128,10 @@ public:
{
{
sal_uLong
oldCount
=
bparr
.
Count
();
sal_uLong
oldCount
=
bparr
.
Count
();
bparr
.
Insert
(
new
BigPtrEntryMock
(
i
),
0
);
bparr
.
Insert
(
new
BigPtrEntryMock
(
i
),
0
);
CPPUNIT_ASSERT_MESSAGE
CPPUNIT_ASSERT_
EQUAL_
MESSAGE
(
(
"test_insert_entries_at_front failed"
,
"test_insert_entries_at_front failed"
,
(
bparr
.
Count
()
==
oldCount
+
1
)
oldCount
+
1
,
bparr
.
Count
(
)
);
);
}
}
...
@@ -198,10 +198,10 @@ public:
...
@@ -198,10 +198,10 @@ public:
for
(
sal_uLong
i
=
0
,
j
=
30
;
i
<
5
;
i
++
,
j
++
)
for
(
sal_uLong
i
=
0
,
j
=
30
;
i
<
5
;
i
++
,
j
++
)
bparr
.
Insert
(
new
BigPtrEntryMock
(
j
),
i
);
bparr
.
Insert
(
new
BigPtrEntryMock
(
j
),
i
);
CPPUNIT_ASSERT_MESSAGE
CPPUNIT_ASSERT_
EQUAL_
MESSAGE
(
(
"test_insert_at_already_used_index failed"
,
"test_insert_at_already_used_index failed"
,
(
oldCount
+
5
==
bparr
.
Count
()
)
oldCount
+
5
,
bparr
.
Count
(
)
);
);
// now, first 5 elements have counts: 30,31,..34
// now, first 5 elements have counts: 30,31,..34
...
@@ -269,10 +269,10 @@ public:
...
@@ -269,10 +269,10 @@ public:
delete
bparr
[
0
];
// release content
delete
bparr
[
0
];
// release content
bparr
.
Remove
(
0
);
// remove item from container
bparr
.
Remove
(
0
);
// remove item from container
CPPUNIT_ASSERT_MESSAGE
CPPUNIT_ASSERT_
EQUAL_
MESSAGE
(
(
"test_remove_at_front failed (wrong count)"
,
"test_remove_at_front failed (wrong count)"
,
(
oldCount
-
1
==
bparr
.
Count
()
)
oldCount
-
1
,
bparr
.
Count
(
)
);
);
for
(
sal_uLong
j
=
0
,
k
=
i
+
1
;
j
<
bparr
.
Count
();
j
++
,
k
++
)
for
(
sal_uLong
j
=
0
,
k
=
i
+
1
;
j
<
bparr
.
Count
();
j
++
,
k
++
)
...
@@ -351,10 +351,10 @@ public:
...
@@ -351,10 +351,10 @@ public:
delete
bparr
[
bparr
.
Count
()
/
2
];
delete
bparr
[
bparr
.
Count
()
/
2
];
bparr
.
Remove
(
bparr
.
Count
()
/
2
);
bparr
.
Remove
(
bparr
.
Count
()
/
2
);
CPPUNIT_ASSERT_MESSAGE
CPPUNIT_ASSERT_
EQUAL_
MESSAGE
(
(
"test_remove_in_the_middle failed (wrong count)"
,
"test_remove_in_the_middle failed (wrong count)"
,
(
oldCount
-
1
==
bparr
.
Count
()
)
oldCount
-
1
,
bparr
.
Count
(
)
);
);
for
(
sal_uLong
i
=
0
;
i
<
bparr
.
Count
();
i
++
)
for
(
sal_uLong
i
=
0
;
i
<
bparr
.
Count
();
i
++
)
...
@@ -395,10 +395,10 @@ public:
...
@@ -395,10 +395,10 @@ public:
bparr
.
Remove
(
0
,
nRemove
);
bparr
.
Remove
(
0
,
nRemove
);
CPPUNIT_ASSERT_MESSAGE
CPPUNIT_ASSERT_
EQUAL_
MESSAGE
(
(
"test_remove_multiple_elements_at_once failed"
,
"test_remove_multiple_elements_at_once failed"
,
(
oldCount
-
nRemove
==
bparr
.
Count
()
)
oldCount
-
nRemove
,
bparr
.
Count
(
)
);
);
CPPUNIT_ASSERT_MESSAGE
CPPUNIT_ASSERT_MESSAGE
...
...
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