aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-17 10:04:20 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-17 10:04:20 +0200
commitc998da02c995ae39d688b10f6993f840a6573c68 (patch)
tree65c0d27f2dffb86fdcf911775a830d88c02d586b /tests/client
parentf52b49722542123844b5c46157dcbc515e319f01 (diff)
downloadqmenumodel-c998da02c995ae39d688b10f6993f840a6573c68.tar.gz
qmenumodel-c998da02c995ae39d688b10f6993f840a6573c68.tar.bz2
qmenumodel-c998da02c995ae39d688b10f6993f840a6573c68.zip
convertertest: add tests for [U]LongLong converters
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/convertertest.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/client/convertertest.cpp b/tests/client/convertertest.cpp
index d3f1174..6f0f949 100644
--- a/tests/client/convertertest.cpp
+++ b/tests/client/convertertest.cpp
@@ -116,6 +116,18 @@ private Q_SLOTS:
QVERIFY(compare(QVariant::fromValue<ulong>(42), G_VARIANT_TYPE_UINT64));
}
+ void testQlongLongToGVariant()
+ {
+ // Int64
+ QVERIFY(compare(QVariant::fromValue<qlonglong>(-42), G_VARIANT_TYPE_INT64));
+ }
+
+ void testUQlongLongToGVariant()
+ {
+ // UInt64
+ QVERIFY(compare(QVariant::fromValue<qulonglong>(42), G_VARIANT_TYPE_UINT64));
+ }
+
void testDoubleToGVariant()
{
// Double