From 90e0fd88dbc2f36796480f7b8d617d8595b98888 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:25:43 -0600 Subject: [PATCH] Add tests for blowfish cowfile Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/src/cows.md | 1 + src/cows/blowfish.cow.jl | 41 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/docs/src/cows.md b/docs/src/cows.md index 820e4d3..1a8b23a 100644 --- a/docs/src/cows.md +++ b/docs/src/cows.md @@ -4,4 +4,5 @@ Examples of all the cowfiles available. ```@docs Cowsay.default +Cowsay.blowfish ``` diff --git a/src/cows/blowfish.cow.jl b/src/cows/blowfish.cow.jl index 91a0bc6..a9c0f4e 100644 --- a/src/cows/blowfish.cow.jl +++ b/src/cows/blowfish.cow.jl @@ -1,6 +1,41 @@ -## -## Blowfish -## +""" + function blowfish() + +A blowfish. + +```jldoctest +julia> cowsay("Bloop, bloop", cow=Cowsay.blowfish) + ______________ +< Bloop, bloop > + -------------- + \\ + \\ + | . + . |L /| + _ . |\\ _| \\--+._/| . + / ||\\| Y J ) / |/| ./ + J |)'( | ` F`.'/ + -<| F __ .-< + | / .-'. `. /-. L___ + J \\ < \\ | | O\\|.-' + _J \\ .- \\/ O | | \\ |F + '-F -<_. \\ .-' `-' L__ + __J _ _. >-' )._. |-' + `-|.' /_. \\_| F + /.- . _.< + /' /.' .' `\\ + /L /' |/ _.-'-\\ + /'J ___.---'\\| + |\\ .--' V | `. ` + |/`. `-. `._) + / .-.\\ + VK \\ ( `\\ + `.\\ + + + +``` +""" function blowfish(;eyes="oo", tongue=" ", thoughts="\\") the_cow = """