Skip to content

Commit d213daf

Browse files
committed
Add the data files used by the testsuite to the src tarball
And rename a test datafile to have the normal extension
1 parent 23d6a91 commit d213daf

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

test/Test.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ test_right_dictionary = do
166166

167167
test_trailing_data :: Assertion
168168
test_trailing_data =
169-
withSampleData "two-files.gzip" $ \hnd -> do
169+
withSampleData "two-files.gz" $ \hnd -> do
170170
let decomp = decompressIO gzipFormat defaultDecompressParams
171171
chunks <- assertDecompressOkChunks hnd decomp
172172
case chunks of
File renamed without changes.

zlib.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ cabal-version: >= 1.10
2121
extra-source-files: cbits/crc32.h cbits/inffast.h cbits/inflate.h
2222
cbits/trees.h cbits/deflate.h cbits/inffixed.h
2323
cbits/inftrees.h cbits/zutil.h
24+
-- test data files
25+
test/data/bad-crc.gz test/data/custom-dict.zlib
26+
test/data/custom-dict.zlib-dict test/data/hello.gz
27+
test/data/not-gzip test/data/two-files.gz
2428
-- demo programs:
2529
examples/gzip.hs examples/gunzip.hs
2630

0 commit comments

Comments
 (0)