Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2010-08-18 13:05:46 +0400
committerFelix Geyer <debfx@fobos.de>2010-08-18 13:05:46 +0400
commit48c498890fa7161e8894338ea3046e1a9741b78f (patch)
treedb666687a8f98e67d041dd0633b06278ea053451 /tests/TestGroupModel.cpp
parent623b325fa157230dc553fb65b50bff5789c7a73a (diff)
Use QCOMPARE instead of QVERIFY where possible.
Diffstat (limited to 'tests/TestGroupModel.cpp')
-rw-r--r--tests/TestGroupModel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/TestGroupModel.cpp b/tests/TestGroupModel.cpp
index d4c5deab4..7ea324344 100644
--- a/tests/TestGroupModel.cpp
+++ b/tests/TestGroupModel.cpp
@@ -70,12 +70,12 @@ void TestGroupModel::test()
QModelIndex index121 = model->index(0, 0, index12);
QModelIndex index2 = model->index(1, 0, indexRoot);
- QVERIFY(model->data(indexRoot) == "groupRoot");
- QVERIFY(model->data(index1) == "group1");
- QVERIFY(model->data(index11) == "group11");
- QVERIFY(model->data(index12) == "group12");
- QVERIFY(model->data(index121) == "group121");
- QVERIFY(model->data(index2) == "group2");
+ QCOMPARE(model->data(indexRoot).toString(), QString("groupRoot"));
+ QCOMPARE(model->data(index1).toString(), QString("group1"));
+ QCOMPARE(model->data(index11).toString(), QString("group11"));
+ QCOMPARE(model->data(index12).toString(), QString("group12"));
+ QCOMPARE(model->data(index121).toString(), QString("group121"));
+ QCOMPARE(model->data(index2).toString(), QString("group2"));
QSignalSpy spy1(model, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)));
group11->setName("test");