Skip to content

Commit 6c57738

Browse files
committed
test EOFError
1 parent 74c3b3f commit 6c57738

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ using Base.Test
2323
@test read(stream) == data
2424
close(stream)
2525

26+
stream = TranscodingStream(Identity(), IOBuffer())
27+
@test_throws EOFError read(stream, UInt8)
28+
@test_throws EOFError unsafe_read(stream, pointer(Vector{UInt8}(3)), 3)
29+
close(stream)
30+
2631
sink = IOBuffer()
2732
stream = TranscodingStream(Identity(), sink)
2833
@test write(stream, "foo") === 3

0 commit comments

Comments
 (0)