Ad
  • Default User Avatar

    Thanks! Glad you liked it. Yes might be a bit tricky for the grade, I guess it's hard to get a consistent grading.

  • Default User Avatar

    Oh, very similar indeed :/ Haven't seen that one. Thanks for approving though!

  • Default User Avatar

    Ok, I guess you mean that I should create a script that generates random input data to the unit tests? But will this not create a catch-22 situation, since I still need to provide an algorithm to calculate the "correct values" for the asserts?

    I have now added a script for generating random dates when running some of the test cases. Was this what you had in mind?

  • Default User Avatar

    More random tests added.

  • Default User Avatar

    No worries, I appreciate the feedback! Am I correct in assuming that you want more variation in the "years"? I understand your point, that a lot is not the same as random, but I guess I don't know how to approach this. I'll make another try on making more random tests.

  • Default User Avatar

    Resolved

  • Default User Avatar

    Good catch, thanks! I have now added a test case with several instances that end up at .5.

  • Default User Avatar

    Is the description too long-winded?

  • Default User Avatar

    Thanks for the feedback, I have now added more random tests.

    And fingers crossed that it will pass as a non-duplicate by the community.

  • Default User Avatar

    Yes you're right. The solution's logic is the same. What is the norm in these situations? Am I expected to remove my kata?