Post #1434197
2026-04-19 09:33 UTC
@jdm_ @servo would it not make more sense to get the current year from the system time, add 10, and inject that, so it's robustly and permanently in the future?
Replies (3)
-
@gsuberland@chaos.social 2026-04-19 09:34
@jdm_ @servo (like ok fine 100 years is a lot, but...)
-
@ratsnakegames@mastodon.social 2026-04-19 09:37
@gsuberland @jdm_ @servo kinda, but introducing logic into your unit tests also means you can introduce bugs into your unit tests
-
@liketechnik@chaos.social 2026-04-19 09:46
@gsuberland @jdm_ @servo I would even go a step further and say the test(s) should not be dependent on system time (or rather: external state) at all :breadthink: