From 4e340e46770157538e5838e1f1cdb542830c3a44 Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Thu, 9 Jan 2025 19:22:36 -0300 Subject: [PATCH] Add test --- test/iobuffer.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/iobuffer.jl b/test/iobuffer.jl index 933662f7e41d1..a9d58f4b7871e 100644 --- a/test/iobuffer.jl +++ b/test/iobuffer.jl @@ -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