Add doctests for dragon 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 12:56:06 -06:00
parent 7872182545
commit 8512401e00
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 32 additions and 0 deletions

View file

@ -20,4 +20,5 @@ Cowsay.blowfish
```@docs
Cowsay.bunny
Cowsay.dragon_and_cow
Cowsay.dragon
```

View file

@ -1,6 +1,37 @@
##
## The Whitespace Dragon
##
"""
function dragon()
The Whitespace Dragon
# Example
```jldoctest
julia> cowsay("Roar!", cow=Cowsay.dragon)
_______
< Roar! >
-------
\\ / \\ //\\
\\ |\\___/| / \\// \\\\
/0 0 \\__ / // | \\ \\
/ / \\/_/ // | \\ \\
@_^_@'/ \\/_ // | \\ \\
//_^_/ \\/_ // | \\ \\
( //) | \\/// | \\ \\
( / /) _|_ / ) // | \\ _\\
( // /) '/,_ _ _/ ( ; -. | _ _\\.-~ .-~~~^-.
(( / / )) ,-{ _ `-.|.-~-. .~ `.
(( // / )) '/\\ / ~-. _ .-~ .-~^-. \\
(( /// )) `. { } / \\ \\
(( / )) .----~-.\\ \\-' .~ \\ `. \\^-.
///.----..> \\ _ -~ `. ^-` ^-_
///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~
/.-~
```
"""
function dragon(;eyes="oo", tongue=" ", thoughts="\\")
the_cow =
"""