NOISSUE fix Mojang JSON format unit test on Qt 5.6 by dumping JSON to byte arrays

This commit is contained in:
Petr Mrázek 2017-04-25 23:33:19 +02:00
parent 6fe9258161
commit 6dc1bc65e1

View File

@ -35,7 +35,8 @@ slots:
auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9-simple.json"); auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9-simple.json");
auto doc2 = MojangVersionFormat::versionFileToJson(vfile); auto doc2 = MojangVersionFormat::versionFileToJson(vfile);
writeJson("1.9-simple-passthorugh.json", doc2); writeJson("1.9-simple-passthorugh.json", doc2);
QCOMPARE(doc, doc2);
QCOMPARE(doc.toJson(), doc2.toJson());
} }
void test_Through() void test_Through()
@ -44,7 +45,7 @@ slots:
auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9.json"); auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9.json");
auto doc2 = MojangVersionFormat::versionFileToJson(vfile); auto doc2 = MojangVersionFormat::versionFileToJson(vfile);
writeJson("1.9-passthorugh.json", doc2); writeJson("1.9-passthorugh.json", doc2);
QCOMPARE(doc, doc2); QCOMPARE(doc.toJson(), doc2.toJson());
} }
}; };