local maxima tests
This commit is contained in:
parent
47f74329bf
commit
354d7cf9f1
2 changed files with 20 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue