371a6f086dd551314bdb8726b1baf1f87a8b91ff
1 # SPDX-FileCopyrightText: 2023 Philippe Proulx <eeppeliteloop@gmail.com>
2 # SPDX-License-Identifier: MIT
11 def _test_comp(type: str, dec_func
: typing
.Callable
[[bytes
], bytes
]):
12 data
= b
"bonjour tout le monde \x00\x23\x42 \x17" + b
"\x7b" * 500
13 ntext
= "!t {} {} !end".format(type, data
.hex())
14 res
= normand
.parse(ntext
)
15 assert dec_func(res
.data
) == data
19 _test_comp("gz", gzip
.decompress
)
23 _test_comp("bz2", bz2
.decompress
)
This page took 0.035265 seconds and 5 git commands to generate.