• That's because you shouldn't use an argument, see how the method is called in the tests: str.toJadenCase(). Read about how to use a prototype.

  • This comment is hidden because it contains spoiler information about the solution

  • Math.floor() is used because the brief requests the answer rounded down to the nearest integer.

  • @e1r0nd is the author of the translation. Hopefully he may fix that.

  • If someone wants to draft new Go test cases in the spirit of all the test cases are Jaden Smith tweets as in the original, I'd be down to approve that. I wouldn't want to prevent a solution like a levenshtein distance compared to different strings collected in a database of Jaden Smith tweets if someone wanted to do that.

    Edit to add: the multiple spaces bit, meanwhile, doesn't specifically go against the spirit of the Kata which would be translating alterations of Jaden's tweets back to how they were originally typed.

  • No worries it's just as mytrofanov said, A space After the last Word and bang it works.

  • You do something bad, necessarily. I've just used it successfully, as does the third topvoted solution. So please check your code. Look for online documentation if you don't find, you only need to import stuff properly, it's straightforward.

  • I import string but it did not work.

    And yes it is Python Thnk will Keep that in mind

  • ohh I'll Try that now

  • It does work, you must do something bad (you need to import it). Please say which language you use (I guess it's Python).

  • This comment is hidden because it contains spoiler information about the solution

  • This comment is hidden because it contains spoiler information about the solution

  • The Go version of this kata is out of the description and differs from other languages, we don't know what must actually be considered a word here (it seems one must split on anything that is not a letter, including the apostrophes, which contradicts the example provided in the description), we don't know how to handle multiple spaces, we don't know if the other letters than the initial must be in lower case...

  • Thank you so much! That is really helpful!

  • This comment is hidden because it contains spoiler information about the solution

  • Loading more items...