From c8ad27975abfc53c58c489de74316431ae6ad8cf Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Sat, 21 Apr 2012 23:43:56 +0200 Subject: [PATCH] Clean up deleted objects test (again). --- tests/TestDeletedObjects.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/TestDeletedObjects.cpp b/tests/TestDeletedObjects.cpp index 7472c6b53..7d6f7ea59 100644 --- a/tests/TestDeletedObjects.cpp +++ b/tests/TestDeletedObjects.cpp @@ -33,8 +33,7 @@ void TestDeletedObjects::initTestCase() void TestDeletedObjects::createAndDelete(Database* db, int delObjectsSize) { - - QVERIFY(db->deletedObjects().size() == delObjectsSize); + QCOMPARE(db->deletedObjects().size(), delObjectsSize); Group* root = db->rootGroup(); int rootChildrenCount = root->children().size(); @@ -43,9 +42,9 @@ void TestDeletedObjects::createAndDelete(Database* db, int delObjectsSize) Uuid gUuid = Uuid::random(); g->setUuid(gUuid); delete g; - QVERIFY(db->deletedObjects().size() == ++delObjectsSize); - QVERIFY(db->deletedObjects().at(delObjectsSize-1).uuid == gUuid); - QVERIFY(rootChildrenCount == root->children().size()); + QCOMPARE(db->deletedObjects().size(), ++delObjectsSize); + QCOMPARE(db->deletedObjects().at(delObjectsSize-1).uuid, gUuid); + QCOMPARE(rootChildrenCount, root->children().size()); Group* g1 = new Group(); g1->setParent(root);