The giveReview()
function uses the condition require(reviewCount[_student] < 5)
to limit the number of reviews per student. However, the system's documentation states that students must receive exactly 4 grades, one per week, over 4 weeks.
Allowing up to 5 reviews contradicts this functional invariant and may create inconsistencies in score calculations, promotions, and upgrade logic.
More reviews than the 4 allowed per student can be conducted.
The established educational logic in the documentation is broken.
It may affect promotion and the system's final state before the upgrade.
The test simulates 5 consecutive weeks with one review per week. The counter reaches 5, demonstrating that reviewCount < 5
allows more reviews than the 4 permitted by the system's rules.
Result:
`reviewCount` for students is not updated after each review session
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.