aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/client/convertertest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/client/convertertest.cpp b/tests/client/convertertest.cpp
index 9e13ccb..f1fd48e 100644
--- a/tests/client/convertertest.cpp
+++ b/tests/client/convertertest.cpp
@@ -180,9 +180,17 @@ private Q_SLOTS:
QTest::addColumn<QVariant>("value");
QTest::addColumn<QString>("schema");
+ // convert to byte
+ QTest::newRow("byte") << QVariant::fromValue<int>(1) << "y";
+
// convert to integer
QTest::newRow("integer") << QVariant::fromValue<int>(1) << "i";
QTest::newRow("integer from double") << QVariant::fromValue<double>(1.1) << "i";
+ QTest::newRow("int16") << QVariant::fromValue<int>(-1) << "n";
+ QTest::newRow("uint16") << QVariant::fromValue<int>(1) << "q";
+ QTest::newRow("uint32") << QVariant::fromValue<int>(1) << "u";
+ QTest::newRow("int64") << QVariant::fromValue<int>(1) << "x";
+ QTest::newRow("uint64") << QVariant::fromValue<int>(1) << "t";
// convert to bool
QTest::newRow("bool") << QVariant::fromValue<bool>(true) << "b";