Commit 04b47279 authored by Volker Krause's avatar Volker Krause

Add a few extra tests to investigate the FreeBSD Asia/Hong_Kong issue

parent 6c4c4ec6
Pipeline #28322 passed with stage
in 7 minutes and 36 seconds
......@@ -117,6 +117,11 @@ private Q_SLOTS:
// tiny, make sure our lookup resolution is big enough for that
tz = KnowledgeDb::timezoneForAirport(KnowledgeDb::IataCode{"LUX"});
QCOMPARE(tz.id(), QByteArray("Europe/Luxembourg"));
// HKG seems to cause trouble on FreeBSD
tz = KnowledgeDb::timezoneForAirport(KnowledgeDb::IataCode{"HKG"});
QCOMPARE(tz, QTimeZone("Asia/Hong_Kong"));
QCOMPARE(tz.id(), QByteArray("Asia/Hong_Kong"));
}
void iataLookupTest()
......
......@@ -321,6 +321,9 @@ private Q_SLOTS:
// polar regions
QCOMPARE(timezoneForCoordinate(-90.0, 0.0), Tz::Undefined);
QCOMPARE(timezoneForCoordinate(90.0, 0.0), Tz::Undefined);
// Hong Kong seems problematic on FreeBSD
QCOMPARE(timezoneForCoordinate(22.31600, 113.93688), Tz::Asia_Hong_Kong);
}
void testCountryFromCoordinate()
......
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