From e8acf64b9efbd20fec2527f39b3998acd62db0eb Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 1 Feb 2022 16:09:55 -0600 Subject: [PATCH] Add tests for all of the possible balloon shapes --- test/runtests.jl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 5263018..a09daa0 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,4 +8,14 @@ DocMeta.setdocmeta!(Cowsay, :DocTestSetup, :(using Cowsay); recursive=true) @testset "Doctests" begin doctest(Cowsay) end + @testset "Balloon Formation" begin + # One-liner say balloon + @test Cowsay.sayballoon("One line") == " __________\n< One line >\n ----------\n" + + # Two-liner say balloon + @test Cowsay.sayballoon("One line\nTwo line") == " __________\n/ One line \\\n\\ Two line /\n ----------\n" + + # Multi-liner say balloon + @test Cowsay.sayballoon("One line\nTwo line\nRed line\nBlue line") == " ___________\n/ One line \\\n| Two line |\n| Red line |\n\\ Blue line /\n -----------\n" + end end