diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-10-18 16:15:55 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-10-18 16:15:55 +0200 |
commit | d8aa8818169b758899ede0ec7932c6fe6f3ef4ee (patch) | |
tree | fa925f5819614a7dad80c6e7f132352e80996471 | |
parent | d3899e64d6c24337d1547854da7e3cb9499d9d14 (diff) | |
download | qmenumodel-d8aa8818169b758899ede0ec7932c6fe6f3ef4ee.tar.gz qmenumodel-d8aa8818169b758899ede0ec7932c6fe6f3ef4ee.tar.bz2 qmenumodel-d8aa8818169b758899ede0ec7932c6fe6f3ef4ee.zip |
ConverterTest: add QVariantList conversion test
-rw-r--r-- | tests/client/convertertest.cpp | 6 |
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 |