Ad
  • Custom User Avatar

    The sample test needs one test that wants a number > 9. Otherwise you will type up a solution to only find out that it will pass the sample test, but fail the test itself because you didn't write a solution for numbers > 9. To me that is an issue that causes you to redo your solution entirely and its misleading.

  • Default User Avatar

    This feels like the beginning of a kata. Rather than counting animals, it can be solved by simply finding, converting, and summing all integers in the string. Consider the sentence, "There are 3 giraffes, 2 doggos, and 12 socks." The correct answer by description should be 5, but this kata avoids these types of cases.

    Maybe this can be part one, and part two requires verifying they are actually animals?

  • Custom User Avatar

    No fixed test with different 1 Jan and same 1 Mar?

    Really, your testing could be better, couldn't it?

  • Default User Avatar

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

  • Custom User Avatar

    Also, random tests?

  • Custom User Avatar

    Random tests?