aboutsummaryrefslogtreecommitdiff
path: root/tests/client/convertertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/client/convertertest.cpp')
-rw-r--r--tests/client/convertertest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/client/convertertest.cpp b/tests/client/convertertest.cpp
index f1fd48e..5492a02 100644
--- a/tests/client/convertertest.cpp
+++ b/tests/client/convertertest.cpp
@@ -192,6 +192,11 @@ private Q_SLOTS:
QTest::newRow("int64") << QVariant::fromValue<int>(1) << "x";
QTest::newRow("uint64") << QVariant::fromValue<int>(1) << "t";
+ // convert to variant
+ QTest::newRow("variant from int") << QVariant::fromValue<int>(1) << "v";
+ QTest::newRow("variant from double") << QVariant::fromValue<double>(1.1) << "v";
+ QTest::newRow("variant from string") << QVariant::fromValue<QString>("string") << "v";
+
// convert to bool
QTest::newRow("bool") << QVariant::fromValue<bool>(true) << "b";
QTest::newRow("bool from int") << QVariant::fromValue<int>(1) << "b";