Ad
  • Custom User Avatar

    If you do lowercase the other letters, the random tests will fail because the include random capitals within strings.

  • Custom User Avatar

    I was very annoyed with this kata because I coded to the spec but was then surprised at the non-standard definition of camelcase. Consider these tests that work with the final solution:

    Assert.AreEqual("hELLOWORLD", Kata.ToCamelCase("hELLO-wORLD"));
    Assert.AreEqual("THISISNOTCAMELCASE", Kata.ToCamelCase("THIS-IS-NOT-CAMELCASE"));
    

    I looked it up and TitleCase is technically considered to be camelCase, but this is not the definition most developers are used to.

    I guess in the end this was a lot like real life requirements, but I get enough of that at work :)

  • Default User Avatar

    Basic_tests
    ✘ Expected: equal to theStealthWarrior
    Actual: theStealthWarrior
    Random_tests
    ✘ Expected: equal to theCatIsCute
    Actual: theCatIsCute

    C++ result \0 at the end of string idk why this result ?