Skip to content

Modified the function to pass all tests#6

Open
sebasto7 wants to merge 1 commit into
ASPP:masterfrom
sebasto7:testing
Open

Modified the function to pass all tests#6
sebasto7 wants to merge 1 commit into
ASPP:masterfrom
sebasto7:testing

Conversation

@sebasto7

@sebasto7 sebasto7 commented Sep 6, 2022

Copy link
Copy Markdown

No description provided.

@pberkes

pberkes commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

I think it would fail this test

def test_local_maxima_not_a_plateau():
    values = [1, 2, 2, 3, 1]
    expected = [3]
    maxima = local_maxima(values)
    assert maxima == expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants