Sophie of Ratsnake Gamesratsnakegames@mastodon.social
Apr 19, 2026, 9:37 AM@gsuberland @jdm_ @servo kinda, but introducing logic into your unit tests also means you can introduce bugs into your unit tests
@gsuberland @jdm_ @servo kinda, but introducing logic into your unit tests also means you can introduce bugs into your unit tests
@gsuberland @jdm_ @servo and you don't have test coverage for your tests, do you?
@ratsnakegames @jdm_ @servo for helper functions used by tests, yes, but point taken
@ratsnakegames @gsuberland @jdm_ @servo
Even worse, the test can have the same bug as the code.
Especially risky with dates, because the usual causes of date bugs - leap years and daylight savings time - happen at the same time for the code and the test, so an off by one (day or hour) bug is likely to not get caught.