Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi authored Jan 9, 2025
1 parent 7ae5839 commit 4e340e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/iobuffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,9 @@ end
io = IOBuffer(data)
@test read(io) == data
end

@testset "Writing Char to full buffer" begin
io = IOBuffer(;maxsize=1)
write(io, 'a')
@test write(io, 'a') == 0
end

0 comments on commit 4e340e4

Please sign in to comment.