Commit 629f191d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

improve autotest

parent 4b41167e
......@@ -104,6 +104,27 @@ void TitleTest::shouldEqualTitle()
QVERIFY(title == result);
void TitleTest::shouldParseTwoTitles()
QByteArray vcarddata("BEGIN:VCARD\n"
"FN:FirstName LastName\n"
KContacts::VCardTool vcard;
const KContacts::AddresseeList lst = vcard.parseVCards(vcarddata);
QCOMPARE(lst.count(), 1);
QCOMPARE(, QStringLiteral("boo"));
QCOMPARE(, QStringLiteral("boo"));
QCOMPARE(, QStringLiteral("bla"));
void TitleTest::shouldParseTitle()
......@@ -35,6 +35,7 @@ private Q_SLOTS:
void shouldAssignExternal();
void shouldSerialized();
void shouldEqualTitle();
void shouldParseTwoTitles();
void shouldParseTitle();
void shouldParseWithoutTitle();
void shouldCreateVCard();
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