From 09db62aac7b16685139a14623444eabecd3f2ed1 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:39:15 -0600 Subject: [PATCH] Add bunny test Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/Manifest.toml | 12 ++++++------ docs/src/cows.md | 13 +++++++++++++ src/cows/bunny.cow.jl | 23 ++++++++++++++++++++--- 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/docs/Manifest.toml b/docs/Manifest.toml index db815bb..2f33d9a 100644 --- a/docs/Manifest.toml +++ b/docs/Manifest.toml @@ -19,15 +19,15 @@ uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" [[DocStringExtensions]] deps = ["LibGit2"] -git-tree-sha1 = "a32185f5428d3986f47c2ab78b1f216d5e6cc96f" +git-tree-sha1 = "b19534d1895d702889b219c382a6e18010797f0b" uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" -version = "0.8.5" +version = "0.8.6" [[Documenter]] deps = ["ANSIColoredPrinters", "Base64", "Dates", "DocStringExtensions", "IOCapture", "InteractiveUtils", "JSON", "LibGit2", "Logging", "Markdown", "REPL", "Test", "Unicode"] -git-tree-sha1 = "fe0bc46b27cd3413df55859152fd70e50744025f" +git-tree-sha1 = "f425293f7e0acaf9144de6d731772de156676233" uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -version = "0.27.6" +version = "0.27.10" [[IOCapture]] deps = ["Logging", "Random"] @@ -64,9 +64,9 @@ uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908" [[Parsers]] deps = ["Dates"] -git-tree-sha1 = "438d35d2d95ae2c5e8780b330592b6de8494e779" +git-tree-sha1 = "ae4bbcadb2906ccc085cf52ac286dc1377dceccc" uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" -version = "2.0.3" +version = "2.1.2" [[Printf]] deps = ["Unicode"] diff --git a/docs/src/cows.md b/docs/src/cows.md index 1a8b23a..25a295a 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -2,7 +2,20 @@ Examples of all the cowfiles available. +## Bovine + ```@docs Cowsay.default +``` + +## Mascots + +```@docs Cowsay.blowfish ``` + +## Other + +```@docs +Cowsay.bunny +``` diff --git a/src/cows/bunny.cow.jl b/src/cows/bunny.cow.jl index 4d15d97..9847c16 100644 --- a/src/cows/bunny.cow.jl +++ b/src/cows/bunny.cow.jl @@ -1,6 +1,23 @@ -## -## A cute little wabbit -## +""" + function bunny() + +A cute little wabbit + +# Example + +```jldoctest +julia> cowsay("Look at that tortoise way off in the distance.", cow=Cowsay.bunny) + ________________________________________________ +< Look at that tortoise way off in the distance. > + ------------------------------------------------ + \\ + \\ \\ + \\ /\\ + ( ) + .( o ). + +``` +""" function bunny(;eyes="oo", tongue=" ", thoughts="\\") the_cow = """