tst_QUrlQuery: replace a few QVERIFY(~~ != ~~) with QCOMPARE_NE
Change-Id: I69ecc04064514f939896fffd17376aae3b8072b5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 8772005a4b340a944587e35d90d83cb0939d717e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
03635c2677
commit
0c5ece1301
@ -169,7 +169,7 @@ void tst_QUrlQuery::constructing()
|
||||
other.addQueryItem("a", "b");
|
||||
QVERIFY(!other.isEmpty());
|
||||
QVERIFY(other.isDetached());
|
||||
QVERIFY(other != empty);
|
||||
QCOMPARE_NE(other, empty);
|
||||
QVERIFY(!(other == empty));
|
||||
|
||||
// copy-construct
|
||||
@ -178,7 +178,7 @@ void tst_QUrlQuery::constructing()
|
||||
|
||||
copy.clear();
|
||||
QVERIFY(copy.isEmpty());
|
||||
QVERIFY(copy != other);
|
||||
QCOMPARE_NE(copy, other);
|
||||
|
||||
// copy-assign
|
||||
copy = other;
|
||||
@ -269,7 +269,7 @@ void tst_QUrlQuery::addRemove()
|
||||
QVERIFY(allItems.contains(qItem("a", "b")));
|
||||
QVERIFY(allItems.contains(qItem("c", "d")));
|
||||
|
||||
QVERIFY(query != original);
|
||||
QCOMPARE_NE(query, original);
|
||||
QVERIFY(!(query == original));
|
||||
}
|
||||
|
||||
@ -316,7 +316,7 @@ void tst_QUrlQuery::addRemove()
|
||||
QVERIFY(allItems.contains(qItem("a", "b")));
|
||||
QVERIFY(allItems.contains(qItem("e", emptyButNotNull)));
|
||||
|
||||
QVERIFY(query != original);
|
||||
QCOMPARE_NE(query, original);
|
||||
QVERIFY(!(query == original));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user