Ad
  • Custom 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.

  • Custom User Avatar

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

  • Custom 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?

  • Custom User Avatar

    More random tests added.

  • Custom 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.

  • Custom User Avatar

    Resolved

  • Custom User Avatar

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

  • Custom User Avatar

    Is the description too long-winded?

  • Custom 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.

  • Custom 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?