diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tst_GZip.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tst_GZip.cpp b/tests/tst_GZip.cpp index 23c749ef..67707a4b 100644 --- a/tests/tst_GZip.cpp +++ b/tests/tst_GZip.cpp @@ -42,8 +42,10 @@ slots: { QByteArray copy = random; copy.resize(cur); - QVERIFY(GZip::compress(copy, compressed)); - QVERIFY(GZip::decompress(compressed, decompressed)); + compressed.clear(); + decompressed.clear(); + QVERIFY(GZip::zip(copy, compressed)); + QVERIFY(GZip::unzip(compressed, decompressed)); QCOMPARE(decompressed, copy); fib(prev, cur); } while (cur < size); |