v/vlib/compress/gzip/gzip_test.v

9 lines
199 B
V

module gzip
fn test_gzip() ? {
uncompressed := 'Hello world!'
compressed := compress(uncompressed.bytes())?
decompressed := decompress(compressed)?
assert decompressed == uncompressed.bytes()
}