24 #include "testmodreader.h" 26 #include "modreader.h" 30 #include <QSharedPointer> 32 bool TestModReader::executeTest()
38 QSet<QString> mapsToCheck =
46 QSharedPointer<ModReader> modReader(ModReader::create(QResource(
"7zedWadsTest.7z").absoluteFilePath()));
47 if (!modReader.isNull())
50 QStringList maps = modReader->getAllMaps();
51 for (
const QString &map : mapsToCheck)
53 bool found = maps.contains(map);
54 testLog << map +
" - " + ((found) ?
"Found" :
"Not Found");