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! Appreciate you assistance. Can't believe I missed that test case.
You have some work left. To solve your current problem, figure out why your code crashes for
is_merge('', 'a', 'b')
. It should returnFalse
.Let me know if you need more hints along the way.
Thanks for spending time with my kata. :-)
This comment is hidden because it contains spoiler information about the solution
Well, there are 600+ valid solutions for Python, so I don't think the tests are wrong. There are some edge cases that are not properly tested, so if anything, they are easier to pass than they should be.
Are you sure you take into account that the number of characters don't always add up?
is_merge('a', 'a', 'a')
should beFalse
for example, just likeis_merge('abc', 'a', 'b')
.If you still are convinced that your code is correct, please let me see it and I'll see what I can do.
In python the tests are passing but the following error still occurs:
IndexError: string index out of range1
I cannot duplicate this at all in my own environment even with missing strings, empty strings and the like. Is there an error with one of the tests themselves?