mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
9 lines
201 B
V
9 lines
201 B
V
|
module zlib
|
||
|
|
||
|
fn test_zlib() ? {
|
||
|
uncompressed := 'Hello world!'
|
||
|
compressed := compress(uncompressed.bytes()) ?
|
||
|
decompressed := decompress(compressed) ?
|
||
|
assert decompressed == uncompressed.bytes()
|
||
|
}
|