Skip to content

Commit df4019f

Browse files
committed
test panic
1 parent 5175551 commit df4019f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,3 +403,9 @@ TranscodingStreams.test_chunked_write(GzipCompression, GzipDecompression)
403403
seekend(stream)
404404
#@test eof(stream)
405405
end
406+
407+
@testset "panic" begin
408+
stream = TranscodingStream(GzipDecompression(), IOBuffer("some invalid data"))
409+
@test_throws ErrorException read(stream)
410+
@test_throws ArgumentError eof(stream)
411+
end

0 commit comments

Comments
 (0)