diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-25 23:33:19 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-25 23:33:19 +0200 |
commit | 6dc1bc65e1bf4cca5390173a167d6d5115ac9688 (patch) | |
tree | dd79a244517c837ca2734320bde058b7b06503d5 /api/logic/minecraft | |
parent | 6fe9258161d73535466af0ac19655563b57cada1 (diff) | |
download | MultiMC-6dc1bc65e1bf4cca5390173a167d6d5115ac9688.tar MultiMC-6dc1bc65e1bf4cca5390173a167d6d5115ac9688.tar.gz MultiMC-6dc1bc65e1bf4cca5390173a167d6d5115ac9688.tar.lz MultiMC-6dc1bc65e1bf4cca5390173a167d6d5115ac9688.tar.xz MultiMC-6dc1bc65e1bf4cca5390173a167d6d5115ac9688.zip |
NOISSUE fix Mojang JSON format unit test on Qt 5.6 by dumping JSON to byte arrays
Diffstat (limited to 'api/logic/minecraft')
-rw-r--r-- | api/logic/minecraft/MojangVersionFormat_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/logic/minecraft/MojangVersionFormat_test.cpp b/api/logic/minecraft/MojangVersionFormat_test.cpp index dce005f6..9c8482ce 100644 --- a/api/logic/minecraft/MojangVersionFormat_test.cpp +++ b/api/logic/minecraft/MojangVersionFormat_test.cpp @@ -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()); } }; |