Add doctests for elephant-in-snake cowfile
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
8512401e00
commit
b6e57ef70b
2 changed files with 25 additions and 3 deletions
|
@ -21,4 +21,5 @@ Cowsay.blowfish
|
|||
Cowsay.bunny
|
||||
Cowsay.dragon_and_cow
|
||||
Cowsay.dragon
|
||||
Cowsay.elephant_in_snake
|
||||
```
|
||||
|
|
|
@ -1,6 +1,27 @@
|
|||
##
|
||||
## Do we need to explain this?
|
||||
##
|
||||
"""
|
||||
function elephant_in_snake()
|
||||
|
||||
Do we need to explain this?
|
||||
|
||||
# Example
|
||||
|
||||
```jldoctests
|
||||
julia> cowsay("Help!", cow=Cowsay.elephant_in_snake)
|
||||
_______
|
||||
< Help! >
|
||||
-------
|
||||
\\
|
||||
\\ ....
|
||||
........ .
|
||||
. .
|
||||
. .
|
||||
......... .......
|
||||
..............................
|
||||
|
||||
Elephant inside ASCII snake
|
||||
|
||||
```
|
||||
"""
|
||||
function elephant_in_snake(;eyes="oo", tongue=" ", thoughts="\\")
|
||||
the_cow = """
|
||||
$thoughts
|
||||
|
|
Loading…
Reference in a new issue