Commit 06298b24 authored by Peifeng Yu's avatar Peifeng Yu

Properly quote expected string value in lldb formatter unittests

Summary:
Sorry about breaking gdb printer tests. I must have forgotten
adapting them when merging lldb and gdb tests. Anyway, this patch uses
correct expected values in lldb tests.

Reviewers: kfunk, #kdevelop

Reviewed By: kfunk, #kdevelop

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D9929
parent 8a4df795
......@@ -943,12 +943,12 @@ void LldbFormattersTest::testQUrl()
QList<QPair<QString, QString>> children;
children.append({QStringLiteral("(port)"), QStringLiteral("12345")});
children.append({QStringLiteral("(scheme)"), QStringLiteral("\"http\"")});
children.append({QStringLiteral("(userName)"), QStringLiteral("user")});
children.append({QStringLiteral("(userName)"), QStringLiteral("\"user\"")});
children.append({QStringLiteral("(password)"), QStringLiteral("<Invalid>")});
children.append({QStringLiteral("(host)"), QStringLiteral("\"www.kdevelop.org\"")});
children.append({QStringLiteral("(path)"), QStringLiteral("\"/foo\"")});
children.append({QStringLiteral("(query)"), QStringLiteral("xyz=bar")});
children.append({QStringLiteral("(fragment)"), QStringLiteral("asdf")});
children.append({QStringLiteral("(query)"), QStringLiteral("\"xyz=bar\"")});
children.append({QStringLiteral("(fragment)"), QStringLiteral("\"asdf\"")});
VERIFY_LOCAL(0, "u", "\"http://user@www.kdevelop.org:12345/foo?xyz=bar#asdf\"", children);
}
......
Markdown is supported
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