A typo in Part 11 in the testcases of exercise 7
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
Research direction
Find the Part 11 exercise 7 testcase containing test_9a_test_hits_in_place_with_values_1 and test_9b_test_hits_in_place_with_values_2. Review the expected corr arrays against the shown test_case and correct the two reported typos, then run the relevant exercise tests to confirm they pass.
Written by the indexing model from the issue text.
Description
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[:])
- Dominant language
- JavaScript
- Stars
- 77
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rage/programming-26
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rage/programming-26#68 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
rage/programming-26#62 ·
-
A typo in Part 4 Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rage/programming-26#56 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
rage/programming-26#55 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
rage/programming-26#54 ·
All issues in rage/programming-26
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·