local maxima tests

This commit is contained in:
ASPP Student 2025-09-23 16:31:03 +03:00
parent 47f74329bf
commit 354d7cf9f1
2 changed files with 20 additions and 6 deletions

View file

@ -16,15 +16,21 @@ def test_find_maxima_edges():
def test_find_maxima_empty():
values = [1,2,2,1]
expected = [1]
maxima = find_maxima(values)
assert maxima == expected
def test_find_maxima_plateau():
values = []
expected = []
maxima = find_maxima(values)
assert maxima == expected
def test_find_maxima_plateau():
raise Exception('not yet implemented')
def test_find_maxima_not_a_plateau():
raise Exception('not yet implemented')
values = []
expected = []
maxima = find_maxima(values)
assert maxima == expected