From 7bbea4c43b96255f8ced5d62a5902016bcc74b0f Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 13:08:51 -0600 Subject: [PATCH] Add doctests for vader cowfile Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/src/cows.md | 1 + src/cows/vader.cow.jl | 25 ++++++++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/docs/src/cows.md b/docs/src/cows.md index e1bf878..e1329eb 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -8,6 +8,7 @@ Examples of all the cowfiles available. Cowsay.default Cowsay.cower Cowsay.udder +Cowsay.vader ``` ## Mascots diff --git a/src/cows/vader.cow.jl b/src/cows/vader.cow.jl index 33c36f2..e1e8abf 100644 --- a/src/cows/vader.cow.jl +++ b/src/cows/vader.cow.jl @@ -1,6 +1,25 @@ -## -## Cowth Vader, from geordan@csua.berkeley.edu -## +""" + function vader() + +Cowth Vader, from geordan@csua.berkeley.edu + +# Example + +```jldoctest +julia> cowsay("Luke, I am your father!", cow=Cowsay.vader) + _________________________ +< Luke, I am your father! > + ------------------------- + \\ ,-^-. + \\ !oYo! + \\ /./=\\.\\______ + ## )\\/\\ + ||-----w|| + || || + + Cowth Vader +``` +""" function vader(;eyes="oo", tongue=" ", thoughts="\\") the_cow = """