From 47aea47a6241e1273ef27f193bccfd311575bc25 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 13:03:11 -0600 Subject: [PATCH] Add doctests to udder cowfile Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/src/cows.md | 1 + src/cows/udder.cow.jl | 25 ++++++++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/docs/src/cows.md b/docs/src/cows.md index 945024f..9dd1844 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -7,6 +7,7 @@ Examples of all the cowfiles available. ```@docs Cowsay.default Cowsay.cower +Cowsay.udder ``` ## Mascots diff --git a/src/cows/udder.cow.jl b/src/cows/udder.cow.jl index 6043bbb..ac4f503 100644 --- a/src/cows/udder.cow.jl +++ b/src/cows/udder.cow.jl @@ -1,6 +1,25 @@ -## -## The cow from a file called cow-n-horn, artist unknown. -## +""" + function udder() + +The cow from a file called cow-n-horn, artist unknown. + +# Example + +```jldoctest +_______________ +< Milking time! > + --------------- + \\ + \\ (__) + o o\\ + ('') \\--------- + \\ \\ + | |\\ + ||---( )_|| * + || UU || + == == +``` +""" function udder(;eyes="oo", tongue=" ", thoughts="\\") eye1 = first(eyes) eye2 = last(eyes)