mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 17:01:35 +01:00
Add deflate-distance-32768 test case
This commit is contained in:
1 parent
d1399fac19
commit
f11e1f97c6
8 files changed
+574
-37
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# Feed this file to script/make-deflate.go
|
||||
|
||||
blockFixedHuffman (final) {
|
||||
# Make 16 + 126*258 + 244 = 32768 bytes:
|
||||
# abcdefgh0123456701234567...01234567
|
||||
literal "abcdefgh01234567"
|
||||
repeat 126 [
|
||||
len 258 dist 8
|
||||
]
|
||||
len 244 dist 8
|
||||
|
||||
# Copy "abc".
|
||||
len 3 dist 32768
|
||||
|
||||
# Copy "012".
|
||||
len 3 dist 35
|
||||
|
||||
# Copy "gh0".
|
||||
len 3 dist 32768
|
||||
|
||||
# Copy "2345".
|
||||
len 4 dist 32767
|
||||
|
||||
endOfBlock
|
||||
}
|
||||
|
||||
# The decompressed data is 32768 + 3 + 3 + 3 + 4 = 32781 bytes:
|
||||
# abcdefgh0123456701234567...01234567abc012gh02345
|
||||
Reference in new issue
Block a user