From d3016c574d3499cfbb325aa26f5e82f56d28579d Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 13:13:17 -0600 Subject: [PATCH] Add doctests for www cowfile Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/src/cows.md | 1 + src/cows/www.cow.jl | 22 +++++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/docs/src/cows.md b/docs/src/cows.md index e1329eb..505edc0 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -9,6 +9,7 @@ Cowsay.default Cowsay.cower Cowsay.udder Cowsay.vader +Cowsay.www ``` ## Mascots diff --git a/src/cows/www.cow.jl b/src/cows/www.cow.jl index b3f8f9d..750a5f6 100644 --- a/src/cows/www.cow.jl +++ b/src/cows/www.cow.jl @@ -1,6 +1,22 @@ -## -## A cow wadvertising the World Wide Web, from lim@csua.berkeley.edu -## +""" + function www() + +A cow wadvertising the World Wide Web, from lim@csua.berkeley.edu + +# Example + +```jldoctest +julia> cowsay("My favorite site is MooTube", cow=Cowsay.www) + _____________________________ +< My favorite site is MooTube > + ----------------------------- + \\ ^__^ + \\ (oo)\\_______ + (__)\\ )\\/\\ + ||--WWW | + || || +``` +""" function www(;eyes="oo", tongue=" ", thoughts="\\") the_cow = """