Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
04b47279
Commit
04b47279
authored
Jul 25, 2020
by
Volker Krause
Browse files
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/airportdbtest.cpp
View file @
04b47279
...
...
@@ -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
()
...
...
autotests/knowledgedbtest.cpp
View file @
04b47279
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment