NOISSUE make new Mojang version format pass through MultiMC structures

Not yet used effectively, but it is read and written properly
This commit is contained in:
Petr Mrázek
2016-03-07 02:01:28 +01:00
parent 3d8728f52f
commit d4eacb56b3
21 changed files with 493 additions and 155 deletions

View File

@ -34,21 +34,19 @@ slots:
QJsonDocument doc = readJson("tests/data/1.9-simple.json");
auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9-simple.json");
auto doc2 = MojangVersionFormat::profilePatchToJson(vfile);
writeJson("beast.json", doc2);
writeJson("1.9-simple-passthorugh.json", doc2);
QCOMPARE(doc, doc2);
}
// not yet
/*
void test_Through()
{
QJsonDocument doc = readJson("tests/data/1.9.json");
auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9.json");
auto doc2 = MojangVersionFormat::profilePatchToJson(vfile);
writeJson("1.9-passthorugh.json", doc2);
QCOMPARE(doc, doc2);
}
*/
};
QTEST_GUILESS_MAIN(MojangVersionFormatTest)