summaryrefslogtreecommitdiff
path: root/test/source/container
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 14:22:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 14:22:36 +0200
commitff1b46c6fee5f6d1259eb29254782688b4dccb32 (patch)
tree443160f152eb175a5de176ee04a9e262b3811430 /test/source/container
parent73463243129243fa71af7b1685ce9df838cfe9e7 (diff)
loplugin:cppunitassertequals: test
Change-Id: I3357b7502fcf9a45095919157ca1530e10c14dd0
Diffstat (limited to 'test/source/container')
-rw-r--r--test/source/container/xelementaccess.cxx2
-rw-r--r--test/source/container/xindexaccess.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/source/container/xelementaccess.cxx b/test/source/container/xelementaccess.cxx
index c1281feaa796..16e9c2ff4c3c 100644
--- a/test/source/container/xelementaccess.cxx
+++ b/test/source/container/xelementaccess.cxx
@@ -19,7 +19,7 @@ namespace apitest {
void XElementAccess::testGetElementType()
{
uno::Reference< container::XElementAccess > xElementAccess(init(), UNO_QUERY_THROW);
- CPPUNIT_ASSERT(xElementAccess->getElementType()==maType);
+ CPPUNIT_ASSERT_EQUAL(maType, xElementAccess->getElementType());
}
void XElementAccess::testHasElements()
diff --git a/test/source/container/xindexaccess.cxx b/test/source/container/xindexaccess.cxx
index 773366ab5ee2..e359d88277a4 100644
--- a/test/source/container/xindexaccess.cxx
+++ b/test/source/container/xindexaccess.cxx
@@ -24,13 +24,13 @@ XIndexAccess::XIndexAccess(sal_Int32 nItems):
void XIndexAccess::testGetCount()
{
uno::Reference< container::XIndexAccess > xIndexAccess(init(), UNO_QUERY_THROW);
- CPPUNIT_ASSERT(mnItems == xIndexAccess->getCount());
+ CPPUNIT_ASSERT_EQUAL(mnItems, xIndexAccess->getCount());
}
void XIndexAccess::testGetByIndex()
{
uno::Reference< container::XIndexAccess > xIndexAccess(init(), UNO_QUERY_THROW);
- CPPUNIT_ASSERT(mnItems == xIndexAccess->getCount());
+ CPPUNIT_ASSERT_EQUAL(mnItems, xIndexAccess->getCount());
if (mnItems > 0)
{