Commit 77c60381 authored by Volker Krause's avatar Volker Krause
Browse files

Add unit test for GB -> BE transition

Works correctly, so bug 461438 is more complicated than just the
transition information being miscalculated.

CCBUG: 461438
parent cfae25b4
Pipeline #261442 passed with stage
in 2 minutes and 55 seconds
......@@ -45,6 +45,19 @@ private Q_SLOTS:
QCOMPARE(l.timeZoneOffsetDelta(), -3600);
QVERIFY(!l.timeZoneName().isEmpty());
}
void testBug461438()
{
// UK -> BE transition - https://bugs.kde.org/461438
LocationInformation info;
info.setIsoCode(QStringLiteral("GB"));
info.setIsoCode(QStringLiteral("BE"));
QVERIFY(info.drivingSideDiffers());
QCOMPARE(info.drivingSide(), KItinerary::KnowledgeDb::DrivingSide::Right);
QCOMPARE(info.powerPlugCompatibility(), LocationInformation::Incompatible);
QVERIFY(info.currencyDiffers());
QCOMPARE(info.currencyCode(), QLatin1String("EUR"));
}
};
QTEST_GUILESS_MAIN(LocationInformationTest)
......
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