Ad
  • Custom User Avatar

    Removed the errant test codes containing non-aphanumeric characters.
    First do a "RESET" so that the test cases refresh themselves.
    Of course, save your code before you do a "RESET", and paste it back in again.

  • Default User Avatar

    I enjoyed solving this kata. In the future you should add testing the end of the game logic, including extra innings. Thanks.

  • Default User Avatar

    The instructions indicate that the input will only contain alphanumeric characters (0-9, a-z, A-Z), however the sample test cases have non-alphanumeric characters within them, for example: space, semi-colon, apostrophe, and backslash:

    Assert::That(duplicateCount(" "), Equals(0));

    Assert::That(duplicateCount("asdfghjkl;'\"), Equals(0));

    Assert::That(duplicateCount("asdfghjkl;'\'"), Equals(1));

    And even if I ignore the non-alphanumeric characters, the "Assert::That(duplicateCount("asdfghjkl;'\'"), Equals(1));" is counting the two apostrophes as a match.