diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-01-05 09:51:23 -0300 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-01-20 00:19:22 -0300 |
commit | 8772005a4b340a944587e35d90d83cb0939d717e (patch) | |
tree | 78dc9f376981fe47cef688a547d0a7ad4f065814 /tests | |
parent | fc8dad2f10e7976cfa778ca7d75e651012629b21 (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/io/qurlquery/tst_qurlquery.cpp | 8 |
1 files 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 deb6fce563..4735d33eb2 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)); } |