Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
9fdba0e0
Commit
9fdba0e0
authored
8 years ago
by
Alex March
Committed by
Damien George
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tests/extmod/uzlib: Test adaptive huffman tree for tinflate coverage.
parent
056da75a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/extmod/uzlib_decompress.py
+2
-0
2 additions, 0 deletions
tests/extmod/uzlib_decompress.py
with
2 additions
and
0 deletions
tests/extmod/uzlib_decompress.py
+
2
−
0
View file @
9fdba0e0
...
...
@@ -10,6 +10,8 @@ PATTERNS = [
(
b
'
0
'
*
100
,
b
'
x
\x9c
30
\xa0
=
\x00\x00\xb3
q
\x12\xc1
'
),
(
bytes
(
range
(
64
)),
b
'
x
\x9c
c`dbfaec
\xe7\xe0\xe4\xe2\xe6\xe1\xe5\xe3\x17\x10\x14\x12\x16\x11\x15\x13\x97\x90\x94\x92\x96\x91\x95\x93
WPTRVQUS
\xd7\xd0\xd4\xd2\xd6\xd1\xd5\xd3
70426153
\xb7\xb0\xb4\xb2\xb6\xb1\xb5\xb3\x07\x00\xaa\xe0\x07\xe1
'
),
(
b
'
hello
'
,
b
'
x
\x01\x01\x05\x00\xfa\xff
hello
\x06
,
\x02\x15
'
),
# compression level 0
# adaptive/dynamic huffman tree
(
b
'
13371813150|13764518736|12345678901
'
,
b
'
x
\x9c\x05\xc1\x81\x01\x00
0
\x04\x04\xb1\x95\\\x1f\xcf
n
\x86
o
\x82
d
\x06
Qq
\xc8\x9d\xc5
X}<e
\xb5
g
\x83\x0f\x89
X
\x07\xab
'
)
]
for
unpacked
,
packed
in
PATTERNS
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment