Add doctests to udder 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 13:03:11 -06:00
parent 91ac62e8ba
commit 47aea47a62
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 23 additions and 3 deletions

View file

@ -7,6 +7,7 @@ Examples of all the cowfiles available.
```@docs ```@docs
Cowsay.default Cowsay.default
Cowsay.cower Cowsay.cower
Cowsay.udder
``` ```
## Mascots ## Mascots

View file

@ -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)