-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Remind the user of the hint option #425
Conversation
Suggestion from AbdouSeck rust-lang#424 (comment) for when the student's code has errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should catch exercises where the code compiles but the output panics. One caveat with this patch is that it only makes the learner aware that their code panics. It does not mark the exercise as incomplete. I cannot currently think of an easy way to force panicking code to be marked as incomplete when the exercise is not a Test
exercise. But there should be a way to get that done.
For now, though, I would approve this and hopefully we'll engage in more discussion to see if there is any merit to marking a Compile
mode exercise as incomplete if the learner's code panics.
Thanks!
Abdou
Suggestion from AbdouSeck #424 (comment) for when the student's code has errors.
Suggestion from AbdouSeck rust-lang#424 (comment) for when the student's code has errors.
Suggestion from AbdouSeck rust-lang#424 (comment) for when the student's code has errors.
Suggestion from AbdouSeck rust-lang#424 (comment) for when the student's code has errors.
Suggestion from AbdouSeck rust-lang#424 (comment) for when the student's code has errors.
Suggestion from AbdouSeck rust-lang#424 (comment) for when the student's code has errors.
Suggestion from AbdouSeck #424 (comment) for when the student's code has errors.
(Works for me, but I haven't done extensive testing to check how this could impact other exercises, so this should be reviewed by someone more competent than me, before merging.)