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.
thanks I got the solution to take that into account and it passed.
The message "should return string when length is longer than string" is wrong, but you should be able to figure out what you need to do from the rest of the error: when length is 0, should return empty string.
I am not happy with my solution. My first Kata. I would like to have done a more elegant solution. It works but feels dirty.
Hello I am getting the below failures when I submit the test. I wanted to query if this was correct.
It says when Length is 0 it should get a string which has a length of 0 however in the instructions it says if the given length is less that the string the strng should return untouched.
I assume "hello world" with a length of 0 is being passed into the method. Should returning "hello world" be correct?
--------failure message--------------
set length to 0
should return string when length is longer than string
Length is different - Expected: 0, instead got: 11
should match the shortened string
should be empty string - Expected: "", instead got: "hello world