Changeset View
Changeset View
Standalone View
Standalone View
autotests/addresstest.cpp
Show First 20 Lines • Show All 428 Lines • ▼ Show 20 Line(s) | |||||
429 | void AddressTest::countryToISOTest() | 429 | void AddressTest::countryToISOTest() | ||
430 | { | 430 | { | ||
431 | using namespace KContacts; | 431 | using namespace KContacts; | ||
432 | QCOMPARE(Address::countryToISO(QStringLiteral("France")), QLatin1String("fr")); | 432 | QCOMPARE(Address::countryToISO(QStringLiteral("France")), QLatin1String("fr")); | ||
433 | QCOMPARE(Address::countryToISO(QStringLiteral("Frankreich")), QLatin1String("fr")); | 433 | QCOMPARE(Address::countryToISO(QStringLiteral("Frankreich")), QLatin1String("fr")); | ||
434 | QCOMPARE(Address::countryToISO(QStringLiteral("Germany")), QLatin1String("de")); | 434 | QCOMPARE(Address::countryToISO(QStringLiteral("Germany")), QLatin1String("de")); | ||
435 | QCOMPARE(Address::countryToISO(QStringLiteral("Österreich")), QLatin1String("at")); | 435 | QCOMPARE(Address::countryToISO(QStringLiteral("Österreich")), QLatin1String("at")); | ||
436 | QCOMPARE(Address::countryToISO(QStringLiteral("Disneyland")), QString()); | 436 | QCOMPARE(Address::countryToISO(QStringLiteral("Disneyland")), QString()); | ||
437 | QCOMPARE(Address::countryToISO(QStringLiteral("Østrig")), QLatin1String("at")); | ||||
438 | QCOMPARE(Address::countryToISO(QStringLiteral("Den Demokratiske Republik Congo (DRC)")), QLatin1String("cd")); | ||||
439 | QCOMPARE(Address::countryToISO(QStringLiteral("Congo-Kinshasa")), QLatin1String("cd")); | ||||
440 | QCOMPARE(Address::countryToISO(QStringLiteral("South Sudan")), QLatin1String("ss")); | ||||
441 | QCOMPARE(Address::countryToISO(QStringLiteral("United States")), QLatin1String("us")); | ||||
442 | QCOMPARE(Address::countryToISO(QStringLiteral("United States Of America")), QLatin1String("us")); | ||||
443 | QCOMPARE(Address::countryToISO(QStringLiteral("United")), QString()); | ||||
437 | } | 444 | } |