From 2578872831d93c3959b5883ac6ea279daa8a7d80 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:46:22 -0600 Subject: [PATCH] Add cower cowfile tests Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/src/cows.md | 1 + src/cows/cower.cow.jl | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/docs/src/cows.md b/docs/src/cows.md index 25a295a..c2d68f9 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -6,6 +6,7 @@ Examples of all the cowfiles available. ```@docs Cowsay.default +Cowsay.cower ``` ## Mascots diff --git a/src/cows/cower.cow.jl b/src/cows/cower.cow.jl index eaf789a..e5bf8dd 100644 --- a/src/cows/cower.cow.jl +++ b/src/cows/cower.cow.jl @@ -1,6 +1,30 @@ ## ## A cowering cow ## +""" + function cower() + +A cowering cow + +# Example + +```jldoctest +julia> cowsay("Is it safe to come out yet?", cow=Cowsay.cower) + _____________________________ +< Is it safe to come out yet? > + ----------------------------- + \\ + \\ + ,__, | | + (oo)\\| |___ + (__)\\| | )\\_ + | |_w | \\ + | | || * + + Cower.... + +``` +""" function cower(;eyes="oo", tongue=" ", thoughts="\\") the_cow = """