Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KItinerary
Commits
04b47279
Commit
04b47279
authored
Jul 25, 2020
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
autotests/airportdbtest.cpp
autotests/airportdbtest.cpp
+5
-0
autotests/knowledgedbtest.cpp
autotests/knowledgedbtest.cpp
+3
-0
No files found.
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