aboutsummaryrefslogtreecommitdiff
path: root/tests/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp
diff options
context:
space:
mode:
authorMelvin Keskin <melvo@olomono.de>2022-03-07 20:47:31 +0100
committerLinus Jahn <lnj@kaidan.im>2022-03-16 17:41:16 +0100
commit5b682269631a14d707b5cf1a2893bfd72ba5a011 (patch)
treecdb9fc9cf6b650db0d9f3d2039acf205aee1669a /tests/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp
parente69f1033436ee0de77e7185a4d2dc394b48f14b7 (diff)
downloadqxmpp-5b682269631a14d707b5cf1a2893bfd72ba5a011.tar.gz
Use QVERIFY instead of QCOMPARE for 'doc.setContent(xml, true)'
Diffstat (limited to 'tests/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp')
-rw-r--r--tests/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp b/tests/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp
index c159d164..8f71efb0 100644
--- a/tests/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp
+++ b/tests/qxmppbitsofbinaryiq/tst_qxmppbitsofbinaryiq.cpp
@@ -165,7 +165,7 @@ void tst_QXmppBitsOfBinaryIq::testIsBobIq()
"type=\"get\">"
"<data xmlns=\"urn:xmpp:bob\" cid=\"sha1+8f35fef110ffc5df08d579a50083ff9308fb6242@bob.xmpp.org\"></data>"
"</iq>");
- QCOMPARE(doc.setContent(xmlSimple, true), true);
+ QVERIFY(doc.setContent(xmlSimple, true));
QCOMPARE(QXmppBitsOfBinaryIq::isBitsOfBinaryIq(doc.documentElement()), true);
const QByteArray xmlMultipleElements(
@@ -176,7 +176,7 @@ void tst_QXmppBitsOfBinaryIq::testIsBobIq()
"<data xmlns=\"urn:xmpp:other-data-format:0\" cid=\"sha1+8f35fef110ffc5df08d579a50083ff9308fb6242@bob.xmpp.org\"></data>"
"<data xmlns=\"urn:xmpp:bob\" cid=\"sha1+8f35fef110ffc5df08d579a50083ff9308fb6242@bob.xmpp.org\"></data>"
"</iq>");
- QCOMPARE(doc.setContent(xmlMultipleElements, true), true);
+ QVERIFY(doc.setContent(xmlMultipleElements, true));
QCOMPARE(QXmppBitsOfBinaryIq::isBitsOfBinaryIq(doc.documentElement()), true);
const QByteArray xmlWithoutBobData(
@@ -186,7 +186,7 @@ void tst_QXmppBitsOfBinaryIq::testIsBobIq()
"type=\"get\">"
"<data xmlns=\"urn:xmpp:other-data-format:0\" cid=\"sha1+8f35fef110ffc5df08d579a50083ff9308fb6242@bob.xmpp.org\"></data>"
"</iq>");
- QCOMPARE(doc.setContent(xmlWithoutBobData, true), true);
+ QVERIFY(doc.setContent(xmlWithoutBobData, true));
QCOMPARE(QXmppBitsOfBinaryIq::isBitsOfBinaryIq(doc.documentElement()), false);
}