NOISSUE fix Mojang JSON format unit test on Qt 5.6 by dumping JSON to byte arrays
This commit is contained in:
parent
6fe9258161
commit
6dc1bc65e1
@ -35,7 +35,8 @@ slots:
|
||||
auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9-simple.json");
|
||||
auto doc2 = MojangVersionFormat::versionFileToJson(vfile);
|
||||
writeJson("1.9-simple-passthorugh.json", doc2);
|
||||
QCOMPARE(doc, doc2);
|
||||
|
||||
QCOMPARE(doc.toJson(), doc2.toJson());
|
||||
}
|
||||
|
||||
void test_Through()
|
||||
@ -44,7 +45,7 @@ slots:
|
||||
auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9.json");
|
||||
auto doc2 = MojangVersionFormat::versionFileToJson(vfile);
|
||||
writeJson("1.9-passthorugh.json", doc2);
|
||||
QCOMPARE(doc, doc2);
|
||||
QCOMPARE(doc.toJson(), doc2.toJson());
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user