2024-heraklion-testing-debu.../hands_on/local_maxima/test_local_maxima.py

11 lines
201 B
Python
Raw Normal View History

2024-08-27 15:10:28 +02:00
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