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, ill look into it. And thanks for the heads up of the spoiler tag.
get_middle("cJq")
with your code runs the code, but doesn't test it. You can create sample tests by using expected results from random tests:Test.assert_equals(get_middle("cJq"), "J")
This shows that you are returning three characters instead of one. So you have that to fix in your code now.
This comment is hidden because it contains spoiler information about the solution
What do you mean by
Bluntly, your end is not correctly validating your code. You have to go with the Codewars results.
Sounds like you only passed the sample tests part. When you press SUBMIT, there are fixed and random tests you have to pass.
This comment is hidden because it contains spoiler information about the solution