Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 627a4e8

Browse files
committed
poetry run ruff format
1 parent ec166d0 commit 627a4e8

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .ned import fizzbuzz
1+
from .ned import fizzbuzz

python/selfie-lib/selfie_lib/ned.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ def fizzbuzz(n):
99
fizzbuzz_results.append("Buzz")
1010
else:
1111
fizzbuzz_results.append(f"{i}")
12-
return fizzbuzz_results
12+
return fizzbuzz_results

python/selfie-lib/tests/ned_test.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
from selfie_lib import fizzbuzz
22

3+
34
def test_fizzbuzz():
4-
# Test the function with a small number to keep the test simple
5-
result = fizzbuzz(15)
6-
expected_result = [
7-
"1", "2", "Fizz", "4", "Buzz", "Fizz", "7", "8", "Fizz", "Buzz",
8-
"11", "Fizz", "13", "14", "FizzBuzz"
5+
assert fizzbuzz(15) == [
6+
"1",
7+
"2",
8+
"Fizz",
9+
"4",
10+
"Buzz",
11+
"Fizz",
12+
"7",
13+
"8",
14+
"Fizz",
15+
"Buzz",
16+
"11",
17+
"Fizz",
18+
"13",
19+
"14",
20+
"FizzBuzz",
921
]
10-
assert result == expected_result

0 commit comments

Comments
 (0)