2024-heraklion-testing-debu.../hands_on/local_maxima/test_local_maxima.py
2024-08-27 16:10:28 +03:00

11 lines
201 B
Python

from local_maxima import find_maxima
import pytest
def test_find_maxima():
input_list = [0, 6, -2, 5, 1]
expected = [1, 3]
result = find_maxima(input_list)
assert result == expected