diff --git a/tests/test_introduction.py b/tests/test_introduction.py index 363bf3a..8ccc119 100644 --- a/tests/test_introduction.py +++ b/tests/test_introduction.py @@ -16,7 +16,7 @@ class TestIntroductory: @pytest.fixture def user_list(self): return [ - # add your usernames here + "Zain-Mahmoud", "kurbydoo", ] @@ -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"