mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
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:
parent
3d8728f52f
commit
d4eacb56b3
21 changed files with 493 additions and 155 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue