diff options
author | Alex March <alex.march.dev@gmail.com> | 2016-10-06 14:38:25 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-07 01:02:11 +1100 |
commit | 9fdba0e09c7522130d6609362973bdf5feda1a2e (patch) | |
tree | 4a0704407506b7b717f61d1b6aedc3ff1eccd973 | |
parent | 056da75a8a034e3b91c9b52ca812394914342059 (diff) | |
download | micropython-9fdba0e09c7522130d6609362973bdf5feda1a2e.tar.gz micropython-9fdba0e09c7522130d6609362973bdf5feda1a2e.zip |
tests/extmod/uzlib: Test adaptive huffman tree for tinflate coverage.
-rw-r--r-- | tests/extmod/uzlib_decompress.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/extmod/uzlib_decompress.py b/tests/extmod/uzlib_decompress.py index 468335a0d1..6892808cb4 100644 --- a/tests/extmod/uzlib_decompress.py +++ b/tests/extmod/uzlib_decompress.py @@ -10,6 +10,8 @@ PATTERNS = [ (b'0' * 100, b'x\x9c30\xa0=\x00\x00\xb3q\x12\xc1'), (bytes(range(64)), b'x\x9cc`dbfaec\xe7\xe0\xe4\xe2\xe6\xe1\xe5\xe3\x17\x10\x14\x12\x16\x11\x15\x13\x97\x90\x94\x92\x96\x91\x95\x93WPTRVQUS\xd7\xd0\xd4\xd2\xd6\xd1\xd5\xd370426153\xb7\xb0\xb4\xb2\xb6\xb1\xb5\xb3\x07\x00\xaa\xe0\x07\xe1'), (b'hello', b'x\x01\x01\x05\x00\xfa\xffhello\x06,\x02\x15'), # compression level 0 + # adaptive/dynamic huffman tree + (b'13371813150|13764518736|12345678901', b'x\x9c\x05\xc1\x81\x01\x000\x04\x04\xb1\x95\\\x1f\xcfn\x86o\x82d\x06Qq\xc8\x9d\xc5X}<e\xb5g\x83\x0f\x89X\x07\xab') ] for unpacked, packed in PATTERNS: |