aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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