aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-24 20:46:51 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-24 20:46:51 +0200
commit7f78a2c234dd017b19de1a43c0fac12a15326be4 (patch)
tree169e0a002d48208dacce319af2260b92a80756e8 /tests/client
parent3d2c260f804273e5a65f27a379f4ad74407ee921 (diff)
downloadqmenumodel-7f78a2c234dd017b19de1a43c0fac12a15326be4.tar.gz
qmenumodel-7f78a2c234dd017b19de1a43c0fac12a15326be4.tar.bz2
qmenumodel-7f78a2c234dd017b19de1a43c0fac12a15326be4.zip
converterTest: QVERIFY comparison return value
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/actiongrouptest.cpp1
-rw-r--r--tests/client/convertertest.cpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/client/actiongrouptest.cpp b/tests/client/actiongrouptest.cpp
index 425f97c..3ab329c 100644
--- a/tests/client/actiongrouptest.cpp
+++ b/tests/client/actiongrouptest.cpp
@@ -43,7 +43,6 @@ private:
// Get Action
QVariant action = m_model.data(m_model.index(index, 0), QMenuModel::Action);
QVERIFY(action.isValid());
- printf("aCTION IS %s\n",action.toString().toUtf8().data());
*act = m_actionGroup.action(action.toString());
QVERIFY(act);
}
diff --git a/tests/client/convertertest.cpp b/tests/client/convertertest.cpp
index ddb6aa2..636c299 100644
--- a/tests/client/convertertest.cpp
+++ b/tests/client/convertertest.cpp
@@ -158,7 +158,7 @@ private Q_SLOTS:
QTest::newRow("double from int") << QVariant::fromValue<int>(1) << "d";
// convert to string
- QTest::newRow("string") << QVariant::fromValue<QString>("FoooBar") << "x";
+ QTest::newRow("string") << QVariant::fromValue<QString>("FoooBar") << "s";
QTest::newRow("string from int") << QVariant::fromValue<int>(1) << "s";
QTest::newRow("string from double") << QVariant::fromValue<double>(1.1) << "s";
@@ -190,7 +190,7 @@ private Q_SLOTS:
QFETCH(QVariant, value);
QFETCH(QString, schema);
- compareWithSchema(value, schema);
+ QVERIFY(compareWithSchema(value, schema));
}
};