@ratsnakegames@mastodon.social
Post #1434201
2026-04-19 09:37 UTC
@gsuberland @jdm_ @servo kinda, but introducing logic into your unit tests also means you can introduce bugs into your unit tests
Replies (2)
-
@ratsnakegames@mastodon.social 2026-04-19 09:38
@gsuberland @jdm_ @servo and you don't have test coverage for your tests, do you?
-
@leeloo@c.im 2026-04-20 15:21
@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.