-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
command rev is not always working in exercism tests #561
Comments
I'd have to see your code, and what you're feeding into rev. Can you paste a link to it, or a mentoring invitation? As a guess, try moving the error checking earlier in your code, so that non-digits are detected before piping them into rev. |
You're right, that I could use Regardless, this error comes from running The question is more like, should this generally work or not? From some googling it looks like this problem is system-related (OS? packages? locale config? not sure...) |
The exercise can (and should) be solved via I could create a similar bug about how executing |
Right. Additionally - Example:
|
I think a test which includes newlines would be a valuable addition here. |
Raised in exercism/problem-specifications#2073 |
Community consensus is to put "more advanced" reverse cases into a new exercise. Closing this issue. |
Hi,
I was implementing https://exercism.org/tracks/bash/exercises/luhn, and I tried to use
rev
to reverse the input string, so I can iterate in a positive loop (starting from 0 index).While locally this worked fine, when I submitted it, one of the tests executed by exercism.io failed:
I don't know if it's in the spirit of this track to use such commands, but I thought I should report this regardless :)
The text was updated successfully, but these errors were encountered: