Use Qt built-in function for comparing values

PR #22389.
This commit is contained in:
Chocobo1 2025-03-10 03:19:31 +08:00 committed by GitHub
parent b74b334e34
commit 882da47609
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 31 deletions

View file

@ -58,7 +58,7 @@ private slots:
bool ok = false;
const QByteArray compressedData = Utils::Gzip::compress(data, 6, &ok);
QVERIFY(ok);
QVERIFY(compressedData != data);
QCOMPARE_NE(compressedData, data);
ok = false;
const QByteArray decompressedData = Utils::Gzip::decompress(compressedData, &ok);