summaryrefslogtreecommitdiff
path: root/sw/qa/core
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 14:22:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 14:22:31 +0200
commit73463243129243fa71af7b1685ce9df838cfe9e7 (patch)
treee5f60bf8e392ba7e21397340ff4d6171efc80378 /sw/qa/core
parentafe5ffaec56c7073e34f852d28ab26da59654e67 (diff)
loplugin:cppunitassertequals: sw
Change-Id: I9e2dcf0e2f5ed9c542b9807683878c654edc21fb
Diffstat (limited to 'sw/qa/core')
-rw-r--r--sw/qa/core/Test-BigPtrArray.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/qa/core/Test-BigPtrArray.cxx b/sw/qa/core/Test-BigPtrArray.cxx
index 89fe504da89a..b4be867771fd 100644
--- a/sw/qa/core/Test-BigPtrArray.cxx
+++ b/sw/qa/core/Test-BigPtrArray.cxx
@@ -128,10 +128,10 @@ public:
{
sal_uLong oldCount = bparr.Count();
bparr.Insert(new BigPtrEntryMock(i), 0);
- CPPUNIT_ASSERT_MESSAGE
+ CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"test_insert_entries_at_front failed",
- (bparr.Count() == oldCount + 1)
+ oldCount + 1, bparr.Count()
);
}
@@ -198,10 +198,10 @@ public:
for (sal_uLong i = 0, j = 30; i < 5; i++, j++)
bparr.Insert(new BigPtrEntryMock(j), i);
- CPPUNIT_ASSERT_MESSAGE
+ CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"test_insert_at_already_used_index failed",
- (oldCount + 5 == bparr.Count())
+ oldCount + 5, bparr.Count()
);
// now, first 5 elements have counts: 30,31,..34
@@ -269,10 +269,10 @@ public:
delete bparr[0]; // release content
bparr.Remove(0); // remove item from container
- CPPUNIT_ASSERT_MESSAGE
+ CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"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++)
@@ -351,10 +351,10 @@ public:
delete bparr[bparr.Count() / 2];
bparr.Remove(bparr.Count() / 2);
- CPPUNIT_ASSERT_MESSAGE
+ CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"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++)
@@ -395,10 +395,10 @@ public:
bparr.Remove(0, nRemove);
- CPPUNIT_ASSERT_MESSAGE
+ CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"test_remove_multiple_elements_at_once failed",
- (oldCount - nRemove == bparr.Count())
+ oldCount - nRemove, bparr.Count()
);
CPPUNIT_ASSERT_MESSAGE