Add doctests for dragon cowfile
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
7872182545
commit
8512401e00
2 changed files with 32 additions and 0 deletions
|
@ -20,4 +20,5 @@ Cowsay.blowfish
|
|||
```@docs
|
||||
Cowsay.bunny
|
||||
Cowsay.dragon_and_cow
|
||||
Cowsay.dragon
|
||||
```
|
||||
|
|
|
@ -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 =
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue