Drop "unused" in degenerate-huffman-unused tests

This commit is contained in:
Nigel Tao committed 2022-01-08 13:59:53 +11:00
1 parent f86c80e425
commit 4aa672af48
5 files changed
+11 -11

No files matched your search

@@ -0,0 +1,64 @@
# Feed this file to script/make-artificial.go
make deflate
blockDynamicHuffman (nonFinal) {
huffman CodeLength {
1 00
2 01
17 10
18 11
}
huffman Literal/Length {
# 102='f', 111='o', 256=EOB
111 0
102 10
256 11
}
huffman Distance {
# Incomplete. There is no key/value pair whose value starts with "1".
#
# The sole key/value pair is also unused. (The one below is used.)
0 0
}
literal "foo"
endOfBlock
}
blockDynamicHuffman (final) {
huffman CodeLength {
0 00
1 01
2 100
3 101
17 110
18 111
}
huffman Literal/Length {
# 65='A', 66='B', 67='C', 68='D', 256=EOB, 257=Length3
65 100
66 101
67 110
68 111
256 00
257 01
}
huffman Distance {
# Incomplete. There is no key/value pair whose value starts with "1".
#
# The sole key/value pair is also used. (The one above is unused.)
#
# Per the second table in RFC 1951 section 3.2.5. "Compressed blocks
# (length and distance codes)", code 3 means a distance of 4.
3 0
}
literal "ABCD"
len 3 dist 4
endOfBlock
}