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:
Thomas A. Christensen II 2021-11-23 12:59:32 -06:00
parent 8512401e00
commit b6e57ef70b
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 25 additions and 3 deletions

View file

@ -21,4 +21,5 @@ Cowsay.blowfish
Cowsay.bunny Cowsay.bunny
Cowsay.dragon_and_cow Cowsay.dragon_and_cow
Cowsay.dragon Cowsay.dragon
Cowsay.elephant_in_snake
``` ```

View file

@ -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="\\") function elephant_in_snake(;eyes="oo", tongue=" ", thoughts="\\")
the_cow = """ the_cow = """
$thoughts $thoughts