Skip to content

Commit 17f49d0

Browse files
author
Adrian Chang
committed
Add items
1 parent 2fac0bd commit 17f49d0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from art import art
2+
3+
4+
def coffee(amount: int = 1) -> str:
5+
"""
6+
Generate some coffee.
7+
8+
Parameters:
9+
amount (int): The number of coffee cups to generate. Defaults to 1.
10+
11+
Returns:
12+
str: The ASCII art representation of the coffee cups.
13+
"""
14+
ascii_art = art("coffee", number=amount)
15+
return ascii_art
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from lbox.example.logo import coffee
2+
3+
class TestLogo:
4+
5+
def test_logo(self):
6+
result = coffee()
7+
assert result == "c[_]"

0 commit comments

Comments
 (0)