Skip to content

A typo in Part 11 in the tests 9a and 9b in exercise 7 #94

@scrof90

Description

@scrof90

In test_9a_test_hits_in_place_with_values_1():

Weekly numbers [1,3,5,7,9,11,13] after running hits_in_place() for test case [1,2,5,6,9,10,11] shouldn't produce [1,-1,5,-1,9,-1,11], but [1,-1,5,-1,9,-1,-1] as 13 and 11 at index 6 aren't the same integers and, therefore, aren't "hits".

In test_9b_test_hits_in_place_with_values_2():

Weekly numbers [5,6,7,8,32,33,34] after running hits_in_place() for test case [4,6,8,10,30,32,34] shouldn't produce [-1,6,8,-1,-1,32,34], but [-1, 6, -1, -1, -1, -1, 34] as 7 and 8 at index 2 and 33 and 32 at index 5 aren't the same integers and, therefore, aren't "hits".

The rest of the tests pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions