mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
LibCompress: Port GzipCompressor
to Core::Stream
This commit is contained in:
parent
b4b80b7ec6
commit
a212bc3052
5 changed files with 50 additions and 56 deletions
|
@ -90,7 +90,7 @@ TEST_CASE(gzip_round_trip)
|
|||
auto original = ByteBuffer::create_uninitialized(1024).release_value();
|
||||
fill_with_random(original.data(), 1024);
|
||||
auto compressed = Compress::GzipCompressor::compress_all(original);
|
||||
EXPECT(compressed.has_value());
|
||||
EXPECT(!compressed.is_error());
|
||||
auto uncompressed = Compress::GzipDecompressor::decompress_all(compressed.value());
|
||||
EXPECT(!uncompressed.is_error());
|
||||
EXPECT(uncompressed.value() == original);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue