From time to time, I get something weird when trying the test cases in the Clash of Code challenge.
My output seems OK (when compared to the example) but the expected output is “nothing” and I don’t pass the test.
I can’t understand how the expected output could be “nothing”…
Thanks for the answer but I now have 2 other questions:
How outputing too much could change the expected result? If the expected result is “foo” and, as you said, I output too much, the expected result should still stay “foo”, right?
When the expected result is “1 2 3 4” and is "1 2 3 4 " (with a trailing space) considered too much?
Make sure there’s not an extra line being thrown in somewhere. If it expects one line and gets two, the second line will flag (expected nothing, got something).
what do you mean “to end line”.
I often have the same problem. it outputs 1 line only. The line in the console looks exacly as the expected value in the TC-List and the checker says: Expected nothing.