@@ -16,13 +16,13 @@ const testdir = @__DIR__
1616@testset " Gzip Codec" begin
1717 codec = GzipCompressor ()
1818 @test codec isa GzipCompressor
19- @test ismatch (r" ^CodecZlib. GzipCompressor\( level=-1, windowbits=\d +\) $" , sprint (show, codec))
19+ @test ismatch (r" ^( CodecZlib\. )? GzipCompressor\( level=-1, windowbits=\d +\) $" , sprint (show, codec))
2020 @test CodecZlib. initialize (codec) === nothing
2121 @test CodecZlib. finalize (codec) === nothing
2222
2323 codec = GzipDecompressor ()
2424 @test codec isa GzipDecompressor
25- @test ismatch (r" ^CodecZlib. GzipDecompressor\( windowbits=\d +\) $" , sprint (show, codec))
25+ @test ismatch (r" ^( CodecZlib\. )? GzipDecompressor\( windowbits=\d +\) $" , sprint (show, codec))
2626 @test CodecZlib. initialize (codec) === nothing
2727 @test CodecZlib. finalize (codec) === nothing
2828
@@ -118,13 +118,13 @@ end
118118@testset " Zlib Codec" begin
119119 codec = ZlibCompressor ()
120120 @test codec isa ZlibCompressor
121- @test ismatch (r" ^CodecZlib\. ZlibCompressor\( level=-1, windowbits=\d +\) $" , sprint (show, codec))
121+ @test ismatch (r" ^( CodecZlib\. )? ZlibCompressor\( level=-1, windowbits=\d +\) $" , sprint (show, codec))
122122 @test CodecZlib. initialize (codec) === nothing
123123 @test CodecZlib. finalize (codec) === nothing
124124
125125 codec = ZlibDecompressor ()
126126 @test codec isa ZlibDecompressor
127- @test ismatch (r" ^CodecZlib\. ZlibDecompressor\( windowbits=\d +\) $" , sprint (show, codec))
127+ @test ismatch (r" ^( CodecZlib\. )? ZlibDecompressor\( windowbits=\d +\) $" , sprint (show, codec))
128128 @test CodecZlib. initialize (codec) === nothing
129129 @test CodecZlib. finalize (codec) === nothing
130130
@@ -198,14 +198,14 @@ end
198198@testset " Deflate Codec" begin
199199 codec = DeflateCompressor ()
200200 @test codec isa DeflateCompressor
201- @test ismatch (r" ^CodecZlib\. DeflateCompressor\( level=-1, windowbits=-\d +\) $" , sprint (show, codec))
201+ @test ismatch (r" ^( CodecZlib\. )? DeflateCompressor\( level=-1, windowbits=-\d +\) $" , sprint (show, codec))
202202 @test CodecZlib. initialize (codec) === nothing
203203 # FIXME : This test fails.
204204 # @test CodecZlib.finalize(codec) === nothing
205205
206206 codec = DeflateDecompressor ()
207207 @test codec isa DeflateDecompressor
208- @test ismatch (r" ^CodecZlib\. DeflateDecompressor\( windowbits=-\d +\) $" , sprint (show, codec))
208+ @test ismatch (r" ^( CodecZlib\. )? DeflateDecompressor\( windowbits=-\d +\) $" , sprint (show, codec))
209209 @test CodecZlib. initialize (codec) === nothing
210210 @test CodecZlib. finalize (codec) === nothing
211211
0 commit comments