Elektrine lite

← Feed

@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)

  • @gsuberland @jdm_ @servo and you don't have test coverage for your tests, do you?

    Open ##1434202

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

    Open ##1469530