Commit c17435d3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more autotests

parent 1ef09ed7
Pipeline #37732 passed with stage
in 49 minutes and 43 seconds
......@@ -588,6 +588,20 @@ void StringUtilTest::test_xdgemail()
QCOMPARE(, QLatin1String("subject"));
QCOMPARE(, QLatin1String("Re: [Cocci] [PATCH 1/2] scripts: coccicheck: Change default value for\tparallelism"));
//Bug 427697
const QByteArray ba(QByteArrayLiteral(""));
QUrl urlDecoded(QUrl::fromPercentEncoding(ba));
QVector<QPair<QString, QString> > values = StringUtil::parseMailtoUrl(urlDecoded);
QCOMPARE(values.size(), 3);
qDebug() << " values " << values;
QCOMPARE(, QLatin1String("to"));
QCOMPARE(, QLatin1String(""));
QCOMPARE(, QLatin1String("subject"));
QCOMPARE(, QLatin1String("Re: [Cocci] [PATCH] scripts: coccicheck: Refactor display messages on\n coccinelle start up"));
QCOMPARE(, QLatin1String("in-reply-to"));
QCOMPARE(, QLatin1String("<20201003142012.idwudlhqiv3a4mjj@adolin>"));
void StringUtilTest::test_stripOffMessagePrefix_data()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment