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:
@ -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)
|
||||
|
Reference in New Issue
Block a user