Ad
  • Custom User Avatar

    Hmm... I wonder how the testing for years will age.

    Change the thing to be "year has to be between 2000 and 2024 (inclusive)", to freeze that test in time and prevent any bugs that happen in a year or two.

  • Custom User Avatar

    Not testing plates with 00 age?

  • Custom User Avatar

    My solution does not account for the passage of time, but it'll pass this year, because it hardcodes 2020 as the future. Next year, I'd have to change that, but I won't submit again next year of course.

    If you want to test correctly, you'd have to devise some way of testing in the past and / or the future, as well as the present, to see if solutions actually account for the current date correctly.

    It can be done, I don't think it's easy, but if you don't do it, you might as well just hardcode now as 2019.