diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-01-07 19:32:39 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-01-07 19:32:39 +0100 |
commit | cff34a14dc69d2332daf0b1c66f7c3af5a259af3 (patch) | |
tree | e09d9bd510880da7c6caa19df9d4996c7359293f /api | |
parent | 8421ef622dc8e51503bad3bc0fbee0aa63ff1b8b (diff) | |
download | MultiMC-cff34a14dc69d2332daf0b1c66f7c3af5a259af3.tar MultiMC-cff34a14dc69d2332daf0b1c66f7c3af5a259af3.tar.gz MultiMC-cff34a14dc69d2332daf0b1c66f7c3af5a259af3.tar.lz MultiMC-cff34a14dc69d2332daf0b1c66f7c3af5a259af3.tar.xz MultiMC-cff34a14dc69d2332daf0b1c66f7c3af5a259af3.zip |
NOISSUE dump the json to log in MojangVersionFormatTest
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/minecraft/MojangVersionFormat_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/logic/minecraft/MojangVersionFormat_test.cpp b/api/logic/minecraft/MojangVersionFormat_test.cpp index 5b836271..dce005f6 100644 --- a/api/logic/minecraft/MojangVersionFormat_test.cpp +++ b/api/logic/minecraft/MojangVersionFormat_test.cpp @@ -22,6 +22,7 @@ class MojangVersionFormatTest : public QObject QFile jsonFile(file); jsonFile.open(QIODevice::WriteOnly | QIODevice::Text); auto data = doc.toJson(QJsonDocument::Indented); + qDebug() << QString::fromUtf8(data); jsonFile.write(data); jsonFile.close(); } @@ -30,7 +31,6 @@ private slots: void test_Through_Simple() { - QJsonDocument doc = readJson("data/1.9-simple.json"); auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9-simple.json"); auto doc2 = MojangVersionFormat::versionFileToJson(vfile); @@ -40,7 +40,6 @@ slots: void test_Through() { - QJsonDocument doc = readJson("data/1.9.json"); auto vfile = MojangVersionFormat::versionFileFromJson(doc, "1.9.json"); auto doc2 = MojangVersionFormat::versionFileToJson(vfile); |