aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-18 16:15:55 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-18 16:15:55 +0200
commitd8aa8818169b758899ede0ec7932c6fe6f3ef4ee (patch)
treefa925f5819614a7dad80c6e7f132352e80996471 /tests
parentd3899e64d6c24337d1547854da7e3cb9499d9d14 (diff)
downloadqmenumodel-d8aa8818169b758899ede0ec7932c6fe6f3ef4ee.tar.gz
qmenumodel-d8aa8818169b758899ede0ec7932c6fe6f3ef4ee.tar.bz2
qmenumodel-d8aa8818169b758899ede0ec7932c6fe6f3ef4ee.zip
ConverterTest: add QVariantList conversion test
Diffstat (limited to 'tests')
-rw-r--r--tests/client/convertertest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/client/convertertest.cpp b/tests/client/convertertest.cpp
index 89e1de4..32d6091 100644
--- a/tests/client/convertertest.cpp
+++ b/tests/client/convertertest.cpp
@@ -177,6 +177,12 @@ private Q_SLOTS:
QVERIFY(compare(QVariantMap({{"fooBar", 0xdeadbeef}}), G_VARIANT_TYPE_VARDICT));
}
+ void testListToGVariant()
+ {
+ // List
+ QVERIFY(compare(QVariantList({"42", 53}), G_VARIANT_TYPE("(si)")));
+ }
+
void testBooleanToQVariant()
{
// Boolean