NOISSUE dump the json to log in MojangVersionFormatTest
This commit is contained in:
parent
8421ef622d
commit
cff34a14dc
@ -22,6 +22,7 @@ class MojangVersionFormatTest : public QObject
|
|||||||
QFile jsonFile(file);
|
QFile jsonFile(file);
|
||||||
jsonFile.open(QIODevice::WriteOnly | QIODevice::Text);
|
jsonFile.open(QIODevice::WriteOnly | QIODevice::Text);
|
||||||
auto data = doc.toJson(QJsonDocument::Indented);
|
auto data = doc.toJson(QJsonDocument::Indented);
|
||||||
|
qDebug() << QString::fromUtf8(data);
|
||||||
jsonFile.write(data);
|
jsonFile.write(data);
|
||||||
jsonFile.close();
|
jsonFile.close();
|
||||||
}
|
}
|
||||||
@ -30,7 +31,6 @@ private
|
|||||||
slots:
|
slots:
|
||||||
void test_Through_Simple()
|
void test_Through_Simple()
|
||||||
{
|
{
|
||||||
|
|
||||||
QJsonDocument doc = readJson("data/1.9-simple.json");
|
QJsonDocument doc = readJson("data/1.9-simple.json");
|
||||||
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);
|
||||||
@ -40,7 +40,6 @@ slots:
|
|||||||
|
|
||||||
void test_Through()
|
void test_Through()
|
||||||
{
|
{
|
||||||
|
|
||||||
QJsonDocument doc = readJson("data/1.9.json");
|
QJsonDocument doc = readJson("data/1.9.json");
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user