Ad
  • Custom User Avatar

    If the idea is to make sure we check for invalid input, you could be a lot more evil and include fixed texts for 02/30/YEAR, 09/31/YEAR, or even 02/29/2001 if you're feeling particularly devilish. Most solutions I have seen so far would have failed those.

    Right now the test cases are in an odd in-between zone: they are enough to annoy the warriors slightly and stop us from finishing the kata on autopilot, but they do not truly put our answers to the test.

  • Custom User Avatar

    Nice kata. The test cases are not good enough though. My solution produced the output 1806 (expected 1807) for input age("10/09/2104","10/09/3911"), but I could still push it through in the next submission. Also, it would be good to mention what needs to be done about leap years.