Issue with test cases: The kata says that even-indexed chars should be capitalized and odd-indexed chars, lowercased, but does not accept "ThIs iS A TeSt", even though the string satisfies both rules. The Kata therefore keeps on failing though the solution is right.
The index is relative to the start of each word, not the string as a whole. The phrasing in the description is a little awkward:
but it is there.
Issue with test cases: The kata says that even-indexed chars should be capitalized and odd-indexed chars, lowercased, but does not accept "ThIs iS A TeSt", even though the string satisfies both rules. The Kata therefore keeps on failing though the solution is right.