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.
Try using
console.log
.Sorry if I am asking a stupid question, but how do I print the input string to the console? All I see in the console are "Test Passed" or "Value is not what was expected" statements when I try to use a console.log method.
You can print the input string
str
to the console.Some of the test cases also contain whitespaces or characters such as
\t
and\n
at the beginning and end of the string so you will not actually see them when printing the input.how do you print the input for the failed test? I have 2 test failed and 113 passed. I dont know why it failed
oh man, so sorry about this comment, it was my first kata and I totally get it now. thank you!
Thanks for the feedback.
The idea is also to have people write their own tests.
In case the indications are not sufficient, you can always print the input given to your method for the failing test.
it wasn't clear about all the tests that would be ran. I passed the examples but kept failing on one actual test, and I have no idea what it was testing for.