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
{{ message }}
Repository navigation
Make it even clearer why Hello world isn't passing #34
In set1, the students need to print hello world, they already have some leeway in what they write, but sometimes they write things that are hard to distinguish visually. E.g. "hello" and "hello " look the same when printed at the end of a line.
and it's already quite permissive, but it doesn't show exactly where the problem is and how to fix it.
I'm not sure what the method to do that is yet, or if there are a range of situations that would be good to test it against, have a look at let me know what you think
Activity
Anmol-Ghadia commentedon Jun 28, 2023
I would like to close this issue, can you please elaborate a little about the specification? thank you.
notionparallax commentedon Jul 5, 2023
Hi @Anmol-Ghadia !
In set1, the students need to print hello world, they already have some leeway in what they write, but sometimes they write things that are hard to distinguish visually. E.g. "hello" and "hello " look the same when printed at the end of a line.
The test for it is here:
course/set1/tests.py
Line 130 in a1631f1
I'm not sure what the method to do that is yet, or if there are a range of situations that would be good to test it against, have a look at let me know what you think
Anmol-Ghadia commentedon Jul 18, 2023
What are your thoughts on a system that responds like so:
Response:
Response:
Response:
It points out the first mistake that is found, (removing leading and trailing spaces).
notionparallax commentedon Jul 23, 2023
That looks great. Especially if characters 0 in both strings are directly on top of each other.
I wonder if we should follow the 3.11 error message convention of indicating where the problem is with a caret? (^)