Add doctests to vader-koala cowfile

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2021-11-23 13:06:42 -06:00
parent 47aea47a62
commit fb0ca28e3a
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 26 additions and 3 deletions

View file

@ -24,4 +24,5 @@ Cowsay.bunny
Cowsay.dragon_and_cow Cowsay.dragon_and_cow
Cowsay.dragon Cowsay.dragon
Cowsay.elephant_in_snake Cowsay.elephant_in_snake
Cowsay.vader_koala
``` ```

View file

@ -1,6 +1,28 @@
## """
## Another canonical koala? function vader_koala
##
Another canonical koala?
# Example
```jldoctest
julia> cowsay("Luke, you are my joey!", cow=Cowsay.vader_koala)
________________________
< Luke, you are my joey! >
------------------------
\\
\\ .
.---. //
Y|o o|Y//
/_(i=i)K/
~()~*~()~
(_)-(_)
Darth
Vader
koala
```
"""
function vader_koala(;eyes="oo", tongue=" ", thoughts="\\") function vader_koala(;eyes="oo", tongue=" ", thoughts="\\")
the_cow = the_cow =
""" """