1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(test): If json string not quoted is server error

This commit is contained in:
Diadlo 2017-10-13 00:33:21 +03:00
parent 967dab8700
commit 7c74491226
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -160,7 +160,7 @@ void TestToxmeData::extractCode_data()
QTest::newRow("String code") << QStringLiteral(R"({"c": "string here"})") QTest::newRow("String code") << QStringLiteral(R"({"c": "string here"})")
<< ToxmeData::ExecCode::IncorrectResponse; << ToxmeData::ExecCode::IncorrectResponse;
QTest::newRow("Invalid code") << QStringLiteral(R"({"c": text})") QTest::newRow("Invalid code") << QStringLiteral(R"({"c": text})")
<< ToxmeData::ExecCode::IncorrectResponse; << ToxmeData::ExecCode::ServerError;
QTest::newRow("Not json") << QStringLiteral("Not json string") QTest::newRow("Not json") << QStringLiteral("Not json string")
<< ToxmeData::ExecCode::ServerError; << ToxmeData::ExecCode::ServerError;
} }