Commit c81d13ce authored by Volker Krause's avatar Volker Krause
Browse files

Improve diagnostic output in the knowledge db unit test

parent c0b485c7
...@@ -30,6 +30,19 @@ ...@@ -30,6 +30,19 @@
using namespace KItinerary; using namespace KItinerary;
using namespace KItinerary::KnowledgeDb; using namespace KItinerary::KnowledgeDb;
namespace KItinerary { namespace KnowledgeDb {
char *toString(Tz tz)
{
using QTest::toString;
return toString(tzId(tz));
}
char *toString(CountryId c)
{
using QTest::toString;
return toString(c.toString());
}
}}
class KnowledgeDbTest : public QObject class KnowledgeDbTest : public QObject
{ {
Q_OBJECT Q_OBJECT
......
...@@ -30,7 +30,7 @@ class QTimeZone; ...@@ -30,7 +30,7 @@ class QTimeZone;
namespace KItinerary { namespace KItinerary {
namespace KnowledgeDb { namespace KnowledgeDb {
/** Returns the IANA timezone id for @p tz. */ /** Returns the IANA timezone id for @p tz. */
const char* tzId(Tz tz); KITINERARY_EXPORT const char* tzId(Tz tz);
/** Returns the corresponding QTimeZone. */ /** Returns the corresponding QTimeZone. */
KITINERARY_EXPORT QTimeZone toQTimeZone(Tz tz); KITINERARY_EXPORT QTimeZone toQTimeZone(Tz tz);
......
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