Ad
  • Custom User Avatar

    Description is not 100% accurate, it should say if days are greater than 2 and less or equal to three then ripe.

  • Custom User Avatar

    'If the difference is exactly three days, return'

    not exacly it's more like more then two and less then ore equal to three

  • Custom User Avatar

    Is this kata working? One of the random tests gave me a difference of 48.5 hours between days and it was expecting Perfect, anyone can explain?

  • Custom User Avatar

    The description does not match the test cases, unless by some stretch 0.00001 of day #3 is considered a "full day" so that 2.00001 days is interpreted as "exactly three" full days. It is not the normal meaning of the word "full day", at least where I live, to consider any miniscule sliver of a fraction of a day as a full day. Quite the opposite, actually.

    The description says:

    ...the number of full days...
    If the difference is less than three days, return the string "Not ripe yet"
    If the difference is exactly three days, return "Perfect!"
    If the difference is more than three days, return "Too far"

    The test cases actually test for this:

    If the difference is two days or less, return the string "Not ripe yet"
    If the difference is more than two days but not more than three days, return "Perfect!"
    If the difference is more than three days, return "Too far"