From 7f78a2c234dd017b19de1a43c0fac12a15326be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 24 Oct 2016 20:46:51 +0200 Subject: converterTest: QVERIFY comparison return value --- tests/client/actiongrouptest.cpp | 1 - tests/client/convertertest.cpp | 4 ++-- 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(1) << "d"; // convert to string - QTest::newRow("string") << QVariant::fromValue("FoooBar") << "x"; + QTest::newRow("string") << QVariant::fromValue("FoooBar") << "s"; QTest::newRow("string from int") << QVariant::fromValue(1) << "s"; QTest::newRow("string from double") << QVariant::fromValue(1.1) << "s"; @@ -190,7 +190,7 @@ private Q_SLOTS: QFETCH(QVariant, value); QFETCH(QString, schema); - compareWithSchema(value, schema); + QVERIFY(compareWithSchema(value, schema)); } }; -- cgit v1.2.3