Open Bencotti opened 4 years ago
This is an intended feature to remove whitespaces, so as to be user friendly. If the user types in "quiz s/ 1", he is evidently intending to start a quiz for the 1st Subject. This is why we decided to accept that input even with so many extra whitespaces. Not accepting whitespaces would also penalise the user if he/she accidentally puts extra whitespaces, forcing him/her to retype the entire command, which is not a user-friendly approach.
Team chose [response.Rejected
]
Reason for disagreement: Thank you for the explanation, but I have to disagree with the team's response. I do not believe it is "evident" when a user tries to insert so many spaces into the argument.
It is hard to believe that the above error is a result of accidental presses.
If allowing whitespaces was meant to be "userfriendly" in your context, shouldn't this be approved as well?
The distance between those two inputs were only one character.
Team chose [severity.Low
]
Originally [severity.High
]
Reason for disagreement: [replace this with your explanation]
Error command: Quiz
Error payload: quiz s/ 1
Command continues to run the first subject even though the wrong input was given. Program manages to catch the error for space but not when an actual non blank argument is given. The number of spaces can be increased or decreased to manipulate the display of the quiz command.