Add doctests for elephant cowfile
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
b6e57ef70b
commit
91ac62e8ba
2 changed files with 24 additions and 3 deletions
|
@ -13,6 +13,7 @@ Cowsay.cower
|
|||
|
||||
```@docs
|
||||
Cowsay.blowfish
|
||||
Cowsay.elephant
|
||||
```
|
||||
|
||||
## Other
|
||||
|
|
|
@ -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 =
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue