We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 049241b commit a636a4fCopy full SHA for a636a4f
src/stream.jl
@@ -183,7 +183,7 @@ function Base.eof(stream::TranscodingStream)
183
elseif mode == :panic
184
throw_panic_error()
185
else
186
- assert(false)
+ @assert false
187
end
188
189
test/codecnoop.jl
@@ -2,6 +2,7 @@
2
source = IOBuffer("")
3
stream = TranscodingStream(Noop(), source)
4
@test eof(stream)
5
+ @inferred eof(stream)
6
@test read(stream) == UInt8[]
7
@test contains(repr(stream), "mode=read")
8
0 commit comments