From c998da02c995ae39d688b10f6993f840a6573c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 17 Oct 2016 10:04:20 +0200 Subject: convertertest: add tests for [U]LongLong converters --- tests/client/convertertest.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') 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(42), G_VARIANT_TYPE_UINT64)); } + void testQlongLongToGVariant() + { + // Int64 + QVERIFY(compare(QVariant::fromValue(-42), G_VARIANT_TYPE_INT64)); + } + + void testUQlongLongToGVariant() + { + // UInt64 + QVERIFY(compare(QVariant::fromValue(42), G_VARIANT_TYPE_UINT64)); + } + void testDoubleToGVariant() { // Double -- cgit v1.2.3