Browse Source

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

reviewable/pr4729/r6
Diadlo 8 years ago
parent
commit
7c74491226
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 2
      test/net/toxmedata_test.cpp

2
test/net/toxmedata_test.cpp

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

Loading…
Cancel
Save