Skip to content

Commit 88fbb77

Browse files
authored
Create test_vote_counter.py
1 parent 5bcc0ef commit 88fbb77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vote-counter/test_vote_counter.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import pytest
2+
from vote_counter import vote_counter
3+
4+
def test_sample_votes():
5+
votes = {'Alice': 3, 'Bob': 2}
6+
winner = vote_counter.count_winner(votes)
7+
assert winner == 'Alice'

0 commit comments

Comments
 (0)