Hacker News new | ask | show | jobs
by RHSeeger 261 days ago
> Yes, these are good. But they're a different kind of test

I've had this exact same discussion with people before. The same people that say "unit tests are worthless because the implementation could change, then the test gets thrown away". Honestly, it drives me bonkers because that entire argument makes no sense to me.

1 comments

Seriously. Yes, it goes without saying that if you throw out the old implementation and write a new one, you throw out the old tests and write new ones as necessary.

It's as banal as saying that when you change a function definition, you have to go change all the places that call it. What do you expect?