Add doctests to vader-koala cowfile
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
47aea47a62
commit
fb0ca28e3a
2 changed files with 26 additions and 3 deletions
|
@ -24,4 +24,5 @@ Cowsay.bunny
|
||||||
Cowsay.dragon_and_cow
|
Cowsay.dragon_and_cow
|
||||||
Cowsay.dragon
|
Cowsay.dragon
|
||||||
Cowsay.elephant_in_snake
|
Cowsay.elephant_in_snake
|
||||||
|
Cowsay.vader_koala
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,6 +1,28 @@
|
||||||
##
|
"""
|
||||||
## Another canonical koala?
|
function vader_koala
|
||||||
##
|
|
||||||
|
Another canonical koala?
|
||||||
|
|
||||||
|
# Example
|
||||||
|
|
||||||
|
```jldoctest
|
||||||
|
julia> cowsay("Luke, you are my joey!", cow=Cowsay.vader_koala)
|
||||||
|
________________________
|
||||||
|
< Luke, you are my joey! >
|
||||||
|
------------------------
|
||||||
|
\\
|
||||||
|
\\ .
|
||||||
|
.---. //
|
||||||
|
Y|o o|Y//
|
||||||
|
/_(i=i)K/
|
||||||
|
~()~*~()~
|
||||||
|
(_)-(_)
|
||||||
|
|
||||||
|
Darth
|
||||||
|
Vader
|
||||||
|
koala
|
||||||
|
```
|
||||||
|
"""
|
||||||
function vader_koala(;eyes="oo", tongue=" ", thoughts="\\")
|
function vader_koala(;eyes="oo", tongue=" ", thoughts="\\")
|
||||||
the_cow =
|
the_cow =
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue