aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/client/convertertest.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/client/convertertest.cpp b/tests/client/convertertest.cpp
index 933ed2f..89e1de4 100644
--- a/tests/client/convertertest.cpp
+++ b/tests/client/convertertest.cpp
@@ -246,10 +246,19 @@ private Q_SLOTS:
void testByteArrayListToQVariant()
{
// ByteArrayList
- const gchar * byteArray[] = {"42", "53", NULL};
+ const gchar *byteArray[] = {"42", "53", NULL};
QVERIFY(compare(g_variant_new_bytestring_array(byteArray, -1), QMetaType::QByteArrayList));
}
+ void testMapToQVariant()
+ {
+ // Map
+ GVariantBuilder *b = g_variant_builder_new(G_VARIANT_TYPE_VARDICT);
+ g_variant_builder_add(b, "{sv}", "Foo", g_variant_new_int32(53));
+ QVERIFY(compare(g_variant_builder_end(b), QVariant::Map));
+ g_variant_builder_unref(b);
+ }
+
void testTupleConversion()
{
QVariantList qTuple;