Add doctests to udder cowfile
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
91ac62e8ba
commit
47aea47a62
2 changed files with 23 additions and 3 deletions
|
@ -7,6 +7,7 @@ Examples of all the cowfiles available.
|
||||||
```@docs
|
```@docs
|
||||||
Cowsay.default
|
Cowsay.default
|
||||||
Cowsay.cower
|
Cowsay.cower
|
||||||
|
Cowsay.udder
|
||||||
```
|
```
|
||||||
|
|
||||||
## Mascots
|
## Mascots
|
||||||
|
|
|
@ -1,6 +1,25 @@
|
||||||
##
|
"""
|
||||||
## The cow from a file called cow-n-horn, artist unknown.
|
function udder()
|
||||||
##
|
|
||||||
|
The cow from a file called cow-n-horn, artist unknown.
|
||||||
|
|
||||||
|
# Example
|
||||||
|
|
||||||
|
```jldoctest
|
||||||
|
_______________
|
||||||
|
< Milking time! >
|
||||||
|
---------------
|
||||||
|
\\
|
||||||
|
\\ (__)
|
||||||
|
o o\\
|
||||||
|
('') \\---------
|
||||||
|
\\ \\
|
||||||
|
| |\\
|
||||||
|
||---( )_|| *
|
||||||
|
|| UU ||
|
||||||
|
== ==
|
||||||
|
```
|
||||||
|
"""
|
||||||
function udder(;eyes="oo", tongue=" ", thoughts="\\")
|
function udder(;eyes="oo", tongue=" ", thoughts="\\")
|
||||||
eye1 = first(eyes)
|
eye1 = first(eyes)
|
||||||
eye2 = last(eyes)
|
eye2 = last(eyes)
|
||||||
|
|
Loading…
Reference in a new issue