Add doctests for elephant 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:01:20 -06:00
parent b6e57ef70b
commit 91ac62e8ba
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 24 additions and 3 deletions

View file

@ -13,6 +13,7 @@ Cowsay.cower
```@docs
Cowsay.blowfish
Cowsay.elephant
```
## Other

View file

@ -1,6 +1,26 @@
##
## An elephant out and about
##
"""
function elephant()
An elephant out and about
# Example
```jldoctest
julia> cowsay("Toot!", cow=Cowsay.elephant)
_______
< Toot! >
-------
\\ /\\ ___ /\\
\\ // \\/ \\/ \\\\
(( O O ))
\\\\ / \\ //
\\/ | | \\/
| | | |
| | | |
| o |
| | | |
|m| |m|
```
"""
function elephant(;eyes="oo", tongue=" ", thoughts="\\")
the_cow =
"""