Skip to content

Commit 00e2985

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f99e68e commit 00e2985

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

graphics/butterfly_pattern.py

-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ def butterfly_pattern(n: int) -> str:
2424
if __name__ == "__main__":
2525
n = int(input("Enter the size of the butterfly pattern: "))
2626
print(butterfly_pattern(n))
27-

graphics/test_butterfly_pattern.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
from graphics.butterfly_pattern import butterfly_pattern
22

3+
34
def test_butterfly_pattern():
45
expected_output = (
5-
"* *\n"
6-
"** **\n"
7-
"*** ***\n"
8-
"** **\n"
9-
"* *"
6+
"* *\n" "** **\n" "*** ***\n" "** **\n" "* *"
107
)
118
assert butterfly_pattern(3) == expected_output

0 commit comments

Comments
 (0)