Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Zlib_jll = "83775a58-1f1d-513f-b197-d71354ab007a"

[compat]
TranscodingStreams = "0.9, 0.10, 0.11"
Zlib_jll = "1"
julia = "1.6"
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestsForCodecPackages = "c2e61002-3542-480d-8b3c-5f05cc4f8554"
Expand Down
9 changes: 8 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using CodecZlib
using Test
using Aqua: Aqua
using TranscodingStreams:
TranscodingStreams,
TranscodingStream
Expand All @@ -11,7 +12,10 @@ using TestsForCodecPackages:
test_roundtrip_seekstart,
test_roundtrip_fileio,
test_chunked_read,
test_chunked_write
test_chunked_write,
test_reuse_encoder

Aqua.test_all(CodecZlib)

const testdir = @__DIR__

Expand Down Expand Up @@ -112,6 +116,7 @@ const testdir = @__DIR__
test_roundtrip_lines(GzipCompressorStream, GzipDecompressorStream)
test_roundtrip_seekstart(GzipCompressorStream, GzipDecompressorStream)
test_roundtrip_transcode(GzipCompressor, GzipDecompressor)
test_reuse_encoder(GzipCompressor, GzipDecompressor)

@test_throws ArgumentError GzipCompressor(level=10)
@test_throws ArgumentError GzipCompressor(windowbits=16)
Expand Down Expand Up @@ -193,6 +198,7 @@ end
test_roundtrip_lines(ZlibCompressorStream, ZlibDecompressorStream)
test_roundtrip_seekstart(ZlibCompressorStream, ZlibDecompressorStream)
test_roundtrip_transcode(ZlibCompressor, ZlibDecompressor)
test_reuse_encoder(ZlibCompressor, ZlibDecompressor)

@test_throws ArgumentError ZlibCompressor(level=10)
@test_throws ArgumentError ZlibCompressor(windowbits=16)
Expand All @@ -218,6 +224,7 @@ end
test_roundtrip_lines(DeflateCompressorStream, DeflateDecompressorStream)
test_roundtrip_seekstart(DeflateCompressorStream, DeflateDecompressorStream)
test_roundtrip_transcode(DeflateCompressor, DeflateDecompressor)
test_reuse_encoder(DeflateCompressor, DeflateDecompressor)

@test DeflateCompressorStream <: TranscodingStream
@test DeflateDecompressorStream <: TranscodingStream
Expand Down
Loading