Add doctests for vader 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:08:51 -06:00
parent fb0ca28e3a
commit 7bbea4c43b
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 23 additions and 3 deletions

View file

@ -8,6 +8,7 @@ Examples of all the cowfiles available.
Cowsay.default Cowsay.default
Cowsay.cower Cowsay.cower
Cowsay.udder Cowsay.udder
Cowsay.vader
``` ```
## Mascots ## Mascots

View file

@ -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="\\") function vader(;eyes="oo", tongue=" ", thoughts="\\")
the_cow = the_cow =
""" """