aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-18 12:53:27 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-18 12:53:27 +0200
commite87701e0f2d5f3b7dd291c7b8c62e407b5abf4c7 (patch)
tree3ed7a1053b5ee5aa4a5130164f3b5e859a344447 /tests
parent3edd18dc46ebb95962f17de0c77ee72f469fd917 (diff)
downloadqmenumodel-e87701e0f2d5f3b7dd291c7b8c62e407b5abf4c7.tar.gz
qmenumodel-e87701e0f2d5f3b7dd291c7b8c62e407b5abf4c7.tar.bz2
qmenumodel-e87701e0f2d5f3b7dd291c7b8c62e407b5abf4c7.zip
Converter: add bytestring support
Diffstat (limited to 'tests')
-rw-r--r--tests/client/convertertest.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/client/convertertest.cpp b/tests/client/convertertest.cpp
index a6a82de..e61caa0 100644
--- a/tests/client/convertertest.cpp
+++ b/tests/client/convertertest.cpp
@@ -169,8 +169,6 @@ private Q_SLOTS:
QVERIFY(compare(QVariantMap({{"fooBar", 0xdeadbeef}}), G_VARIANT_TYPE_VARDICT));
}
- // LIST CHECK!
-
void testBooleanToQVariant()
{
// Boolean
@@ -231,6 +229,12 @@ private Q_SLOTS:
QVERIFY(compare(g_variant_new_string("53"), QVariant::String));
}
+ void testByteArrayToQVariant()
+ {
+ // ByteArray
+ QVERIFY(compare(g_variant_new_bytestring("53"), QVariant::ByteArray));
+ }
+
void testTupleConversion()
{
QVariantList qTuple;