From 0c5ece130129757f68ea8536ebb1b1c4588c5695 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 5 Jan 2023 09:51:23 -0300 Subject: [PATCH] tst_QUrlQuery: replace a few QVERIFY(~~ != ~~) with QCOMPARE_NE Change-Id: I69ecc04064514f939896fffd17376aae3b8072b5 Reviewed-by: Fabian Kosmale Reviewed-by: Edward Welbourne (cherry picked from commit 8772005a4b340a944587e35d90d83cb0939d717e) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/corelib/io/qurlquery/tst_qurlquery.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/auto/corelib/io/qurlquery/tst_qurlquery.cpp b/tests/auto/corelib/io/qurlquery/tst_qurlquery.cpp index deb6fce5635..4735d33eb26 100644 --- a/tests/auto/corelib/io/qurlquery/tst_qurlquery.cpp +++ b/tests/auto/corelib/io/qurlquery/tst_qurlquery.cpp @@ -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)); }