tst_QUrlQuery: replace a few QVERIFY(~~ != ~~) with QCOMPARE_NE

Pick-to: 6.5
Change-Id: I69ecc04064514f939896fffd17376aae3b8072b5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Thiago Macieira 2023-01-05 09:51:23 -03:00
parent fc8dad2f10
commit 8772005a4b

View File

@ -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));
}