Add cower cowfile tests
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
120e370a3b
commit
2578872831
2 changed files with 25 additions and 0 deletions
|
@ -6,6 +6,7 @@ Examples of all the cowfiles available.
|
||||||
|
|
||||||
```@docs
|
```@docs
|
||||||
Cowsay.default
|
Cowsay.default
|
||||||
|
Cowsay.cower
|
||||||
```
|
```
|
||||||
|
|
||||||
## Mascots
|
## Mascots
|
||||||
|
|
|
@ -1,6 +1,30 @@
|
||||||
##
|
##
|
||||||
## A cowering cow
|
## A cowering cow
|
||||||
##
|
##
|
||||||
|
"""
|
||||||
|
function cower()
|
||||||
|
|
||||||
|
A cowering cow
|
||||||
|
|
||||||
|
# Example
|
||||||
|
|
||||||
|
```jldoctest
|
||||||
|
julia> cowsay("Is it safe to come out yet?", cow=Cowsay.cower)
|
||||||
|
_____________________________
|
||||||
|
< Is it safe to come out yet? >
|
||||||
|
-----------------------------
|
||||||
|
\\
|
||||||
|
\\
|
||||||
|
,__, | |
|
||||||
|
(oo)\\| |___
|
||||||
|
(__)\\| | )\\_
|
||||||
|
| |_w | \\
|
||||||
|
| | || *
|
||||||
|
|
||||||
|
Cower....
|
||||||
|
|
||||||
|
```
|
||||||
|
"""
|
||||||
function cower(;eyes="oo", tongue=" ", thoughts="\\")
|
function cower(;eyes="oo", tongue=" ", thoughts="\\")
|
||||||
the_cow =
|
the_cow =
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue