Skip to content

Commit

Permalink
A test for the most_common_element implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
gudlot committed Aug 27, 2024
1 parent 961f87e commit 4ac6493
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ def test_longest_decreasing_streak():
raise AssertionError("This test is missing.")


@pytest.mark.skip(reason="Test is not implemented yet")

def test_most_common_element():
raise AssertionError("This test is missing.")
ll = [1, 2, 3, 4, 1, 1, 2, 3, 3, 3, 3, 3]
res = lwi.most_common_element(ll)
assert res == 3




#@pytest.mark.skip(reason="Test is not implemented yet")
#def test_most_common_element():
# raise AssertionError("This test is missing.")

0 comments on commit 4ac6493

Please sign in to comment.