Ad
  • Custom User Avatar

    Make a new version of this kata that throws everything at the user in the tests? Punctuation, numbers, mid-word hyphens, contractions, make them capitalize the new first letter if the original was capitalized (Hello -> Ellohay)

    It would not be as easy as this one.

  • Custom User Avatar

    Yes, if you notice, all the punctuation in the tests is currently separated by spaces. Even in the description, the example shows the punctuation separated by a space. This is likely intentional to make the kata simpler. The solutions were all built with this in mind, so of course they won't work properly if you change the nature of the inputs. Adding tests as you've suggested would invalidate the vast majority of the 165k+ solutions, and isn't really worth doing.