Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Please review and approve my translation thank you for the good Kata.
https://www.codewars.com/kumite/5fc54a32b700aa0021307f59?sel=5fc54a32b700aa0021307f59
Here is the first sample test which shows an expected result having no trailing space. Following that, we can see the results of running your code which shows that you returned first, and then finally what is expected of the test. Your code is definitely producing a trailing
\n
, and the kata tests are correct.I am facing that same problem...
The expected result shows that the basic tests require the trailing '\n' to pass them. My code does not provide that. When I run my solution, it literally prints the exact result requested in the kata. Try it.
your function returns
undefined
, it should return a stringif you look at your error messages they probably tell you this
Read this paragraph of FAQ.
With what you provided, no.
You can try providing input that fails, expected output and your output, OR provide your code.
tried all options but still same issue poping up...any suggestions?
Sure... Maybe check for trailing whitespace.
I am getting same as answer but still getting error but my solution and answer is the same as fuck ?
This comment is hidden because it contains spoiler information about the solution
There's no issue here. All you have to do is read the error message that shows your code is returning the string with a trailing
\n
but the expected result does not have that, as discernable by the sample tests. Ergo, your foreign testing environment expects the wrong result.I have finally got the thing with return statement. But now another problem occured. My output and the needed one are almost the same, but mine has ...[ ], while it should have...[]. (I mean mine has a space between braces though it should not). I don't know how to fix that.
thanks for help.i change datatype but still not working
See last bullet point: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#when-i-print-my-answer-it-looks-exactly-the-same-as-the-expected-output-yet-tests-fail
Loading more items...