Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions tests/test_introduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestIntroductory:
@pytest.fixture
def user_list(self):
return [
# add your usernames here
"Zain-Mahmoud",
"kurbydoo",
]

Expand All @@ -30,6 +30,14 @@ def test_kurbydoo(self, user_list):

assert counter == n * (n - 1) // 2, "Check arithmetic sum"

assert len(user_list) == 1
assert len(user_list) == 2

### Add your tests below, follow the format above

def test_Zain_Mahmoud(self, user_list):

sorted_list = sorted(user_list)
assert all(sorted_list[0] <= x for x in user_list), "Check sorted"

num_list = range(15)
assert all((2 * x) % 2 == 0 for x in num_list), "Check even"