Skip to content

Commit 6891142

Browse files
authored
Add doctests for butterfly_pattern.py
1 parent c3d4b9e commit 6891142

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graphics/butterfly_pattern.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ def butterfly_pattern(n: int) -> str:
4444
if __name__ == "__main__":
4545
n = int(input("Enter the size of the butterfly pattern: "))
4646
print(butterfly_pattern(n))
47+
48+
if __name__ == "__main__":
49+
import doctest
50+
# Run the doctests
51+
doctest.testmod()

0 commit comments

Comments
 (0)