Re:Ask HN: Why do you make class members private?
by jacquesm on Monday July 25, 2022 @02:40PM
(#32229005)
That's what I would call 'brittle tests'.
Re:Ask HN: Why do you make class members private?
by tejohnso on Monday July 25, 2022 @02:59PM
(#32229289)
Yeah, "brittle", or "fragile", or "tightly coupled to the implementation"
In any case, it's not good. Also not uncommon.
That's optimistic. I suspect there are some people who would be confused by your statement if they've been exposed mostly to tests that verify the steps taken by the implementation.