v/vlib/compress/zlib/zlib_test.v

9 lines
199 B
V

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