Skip to content

A typo in Part 11 in the testcases of exercise 7 #74

Description

@Kwright6

In test case 9a, the last index of corr should be -1 as 11 != 13:

@Points('11.lottery_numbers_part2')
def test_9a_test_hits_in_place_with_values_1(self):
test_case = [1,2,5,6,9,10,11]
correct = [1,3,5,7,9,11,13]
corr = [1,-1,5,-1,9,-1,11]
from src.lottery_numbers import LotteryNumbers
row = LotteryNumbers(1, correct)
val = row.hits_in_place(test_case[:])

In test case 9b, 7 != 8 and 33 != 32:

@Points('11.lottery_numbers_part2')
def test_9b_test_hits_in_place_with_values_2(self):
test_case = [4,6,8,10,30,32,34]
correct = [5,6,7,8,32,33,34]
corr = [-1,6,8,-1,-1,32,34]
from src.lottery_numbers import LotteryNumbers
row = LotteryNumbers(1, correct)
val = row.hits_in_place(test_case[:])

Activity

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

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