You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check50 only test for edge case of user guess of 0 and passes.
Expected result
1, As stated in the problem statement:
Prompts the user to guess that integer. If the guess is not a positive integer, the program should prompt the user again.
check50 should check for actual negative values in user guess input, as the code mistake can be quite common and accept an incorrect acceptance of user guesses:
Preconditions
game.py
, which allows negative guesses from user:test_game.py
:Steps to reproduce
1, Run
check50 cs50/problems/2022/python/game
Actual result
check50
only test for edge case of user guess of0
and passes.Expected result
1, As stated in the problem statement:
check50
should check for actual negative values in user guess input, as the code mistake can be quite common and accept an incorrect acceptance of user guesses:Proposed solution
The text was updated successfully, but these errors were encountered: