tst_QResourceEngine: fix the order of arguments to QCOMPARE
Expected and actual were inverted. Pick-To: 5.15 Change-Id: Idc3fae4d0f614c389d27fffd15e9fa6a0a8f25e6 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>bb10
parent
16e21c0a67
commit
d0c028e898
|
|
@ -451,7 +451,7 @@ void tst_QResourceEngine::checkStructure()
|
|||
}
|
||||
|
||||
list = dir.entryInfoList(QDir::Files, QDir::Name);
|
||||
QCOMPARE(containedFiles.size(), list.size());
|
||||
QCOMPARE(list.size(), containedFiles.size());
|
||||
|
||||
for (i=0; i<list.size(); ++i) {
|
||||
QVERIFY(!list.at(i).isDir());
|
||||
|
|
@ -459,7 +459,7 @@ void tst_QResourceEngine::checkStructure()
|
|||
}
|
||||
|
||||
list = dir.entryInfoList(QDir::NoFilter, QDir::SortFlags(QDir::Name | QDir::DirsFirst));
|
||||
QCOMPARE(containedFiles.size() + containedDirs.size(), list.size());
|
||||
QCOMPARE(list.size(), containedFiles.size() + containedDirs.size());
|
||||
|
||||
for (i=0; i<list.size(); ++i) {
|
||||
QString expectedName;
|
||||
|
|
|
|||
Loading…
Reference in New Issue