logoalt Hacker News

dvt • today at 12:43 AM • 1 reply • view on HN

It's why unit tests are worthless when humans write them, and less than worthless when AI writes them. Same concept: you're testing yourself, of course you're going to pass with flying colors.


Replies

y1n0 • today at 3:38 AM

I wouldn’t call them worthless. I guess it depends on the unit. But also having someone or something independently write tests is generally better than testing your own code.