11 lines
201 B
Python
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
|