Skip to content
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

Hello World Challenge Misleading #142

Open
theonewolf opened this issue Jun 6, 2017 · 3 comments
Open

Hello World Challenge Misleading #142

theonewolf opened this issue Jun 6, 2017 · 3 comments

Comments

@theonewolf
Copy link

Summary

The first "hello world" challenge is slightly misleading. Tools such as echo emit an extra \n character, which was not included in the question description.

If you attempt to solve this problem verbatim and do, for example, printf 'hello world' you will not pass the challenge.

I had to do printf 'hello world\n' in order to pass, which I think is not reflected in the question description.

Steps to reproduce

If applicable please provide a direct link to the challenge, example: https://cmdchallenge.com/#/hello_world

@jarv
Copy link
Owner

jarv commented Jul 6, 2017

Thanks for the report, the description could probably be improved here. This came up in a different issue and it might be a good idea to mention the line ending in the hello world problem like you suggested as it applies for all of them.

@keeferrourke
Copy link

keeferrourke commented Aug 20, 2017

Furthermore, the prompt still prints a newline in the output for printf "hello world", where it should not.

@0ki
Copy link
Contributor

0ki commented Aug 22, 2017

I think rather than rewriting all the challenges the right solution would be for @jarv to add a phantom \n at the end of the output, if it's missing, before verifying the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants